enlightenment_my/src/modules/sysinfo/cpuclock/cpuclock.h

34 lines
800 B
C

#ifndef CPUCLOCK_H
#define CPUCLOCK_H
#include "../sysinfo.h"
typedef struct _Cpuclock_Config Cpuclock_Config;
struct _Cpuclock_Config
{
Instance *inst;
Evas_Object *max;
Evas_Object *min;
Evas_Object *general;
Evas_Object *policy;
Evas_Object *saving;
Evas_Object *freq;
Evas_Object *ps;
Eina_List *powersaves;
Eina_Bool frequencies;
Eina_Bool pstate;
};
EINTERN Evas_Object *cpuclock_configure(Instance *inst);
EINTERN void _cpuclock_config_updated(Instance *inst);
EINTERN void _cpuclock_set_governor(const char *governor);
EINTERN void _cpuclock_set_frequency(int frequency);
EINTERN void _cpuclock_set_pstate(int min, int max, int turbo);
#if defined(__OpenBSD__) || defined(__FreeBSD__)
EINTERN int _cpuclock_sysctl_frequency(int new_perf);
#endif
#endif