#include <throttle_interface.h>
Public Member Functions | |
ThrottleInterface () | |
constructor | |
bool | updateCPUState (EventManagement *eM) |
checks all cpus whether they should get throttled | |
bool | throttle (int percent=-1) |
throttles cpus | |
bool | dethrottle () |
dethrottles cpus | |
void | restart () |
resets the object and clears all local values | |
void | disableThrottling () |
disables throttling | |
Private Attributes | |
unsigned long | _msecs_cpu_idle |
timeout when processor.low event should be thrown if it stays under the limit for this time | |
bool | _cpu_is_idle |
whether cpu is currently idle | |
PROCESSOR_EVENT_STATE | _event_state |
indicates whether an processor event was thrown | |
bool | _throttling_supported |
defines whether throttling is supported |
|
constructor
|
|
dethrottles cpus
|
|
disables throttling
|
|
resets the object and clears all local values this may be used to start evaluating from the beginning |
|
throttles cpus
|
|
checks all cpus whether they should get throttled
|
|
whether cpu is currently idle this does not reflect whether the cpu is throttled. This variable has to be true long enough for the cpu being throttled |
|
indicates whether an processor event was thrown value of 1 indicates that processor.low event has been thrown, value of 0 indicates, that it has not thrown till now |
|
timeout when processor.low event should be thrown if it stays under the limit for this time
|
|
defines whether throttling is supported
|