1 #ifndef CPUCLOCK_H
2 #define CPUCLOCK_H
3 
4 #include "../sysinfo.h"
5 
6 typedef struct _Cpuclock_Config Cpuclock_Config;
7 
8 struct _Cpuclock_Config
9 {
10    Instance *inst;
11    Evas_Object *max;
12    Evas_Object *min;
13    Evas_Object *general;
14    Evas_Object *policy;
15    Evas_Object *saving;
16    Evas_Object *freq;
17    Evas_Object *ps;
18    Eina_List *powersaves;
19    Eina_Bool frequencies;
20    Eina_Bool pstate;
21 };
22 
23 
24 EINTERN Evas_Object *cpuclock_configure(Instance *inst);
25 EINTERN void _cpuclock_config_updated(Instance *inst);
26 EINTERN void _cpuclock_set_governor(const char *governor);
27 EINTERN void _cpuclock_set_frequency(int frequency);
28 EINTERN void _cpuclock_set_pstate(int min, int max, int turbo);
29 #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
30 EINTERN int _cpuclock_sysctl_frequency(int new_perf);
31 #endif
32 
33 #endif
34