#include <cpufreq_interface.h>
Inheritance diagram for CPUFreq_Kernel:
Public Member Functions | |
CPUFreq_Kernel (std::list< int > cpu_list, unsigned long sampling_rate=333000) | |
constructor | |
~CPUFreq_Kernel () | |
destructor | |
bool | init () |
init cpufreq interface and set kernel governor | |
Private Member Functions | |
bool | readFrequencies () |
reads out frequencies | |
int | adjustSpeed () |
adjusts speeds | |
void | reinitSpeed () |
reinits speeds | |
void | setConfig () |
set configuration in initialize values | |
int | writeOndemand (const string &name, int value) |
write a value to an ondemand file | |
Private Attributes | |
unsigned long | _sampling_rate |
the sampling rate to use | |
int | _down_threshold |
down threshold | |
int | _sampling_down_factor |
_sampling down factor | |
string | ON_DEMAND_STRING |
name of ondemand governor to write to governor file | |
string | POWERSAVE_STRING |
name of powersave governor to write to governor file | |
string | PERFORMANCE_STRING |
name of performance governor to write to governor file |
|
constructor
|
|
destructor
|
|
adjusts speeds
Implements CPUFreq_Interface. |
|
init cpufreq interface and set kernel governor
Implements CPUFreq_Interface. |
|
reads out frequencies
Implements CPUFreq_Interface. |
|
reinits speeds function for suspend workaround. after resuming the frequency might have changed and we haven't recognized. This could possibly break old PowerNow! machines, but as far as I know jumping more than one frequency at once is fixed in kernel module for that machines Implements CPUFreq_Interface. |
|
set configuration in initialize values
Implements CPUFreq_Interface. |
|
write a value to an ondemand file write value to a file in /sys/.../cpufreq/ondemand/
|
|
down threshold
|
|
_sampling down factor
|
|
the sampling rate to use
|
|
name of ondemand governor to write to governor file
|
|
name of performance governor to write to governor file
|
|
name of powersave governor to write to governor file
|