powerd++  0.4.4
Variables
constants Namespace Reference

A collection of constants. More...

Variables

const char *const CP_TIMES = "kern.cp_times"
 The MIB name for per-CPU time statistics.
 
const char *const ACLINE = "hw.acpi.acline"
 The MIB name for the AC line state.
 
const char *const FREQ = "dev.cpu.%d.freq"
 The MIB name for CPU frequencies.
 
const char *const FREQ_LEVELS = "dev.cpu.%d.freq_levels"
 The MIB name for CPU frequency levels.
 
const char *const TEMPERATURE = "dev.cpu.%d.temperature"
 The MIB name for CPU temperatures.
 
const char *const TJMAX_SOURCES []
 An array of maximum temperature sources. More...
 
const char *const FREQ_DRIVER = "dev.cpufreq.%d.freq_driver"
 The MIB name for the CPU frequency drivers.
 
const char *const FREQ_DRIVER_BLACKLIST []
 A list of driver prefixes, that are known not to allow manual frequency control. More...
 
const types::mhz_t FREQ_DEFAULT_MAX {1000000}
 Default maximum clock frequency value.
 
const types::mhz_t FREQ_DEFAULT_MIN {0}
 Default minimum clock frequency value.
 
const types::mhz_t FREQ_UNSET {1000001}
 Clock frequency representing an uninitialised value.
 
const char *const POWERD_PIDFILE = "/var/run/powerd.pid"
 The default pidfile name of powerd.
 
const types::cptime_t ADP {512}
 The load target for adaptive mode, equals 50% load.
 
const types::cptime_t HADP {384}
 The load target for hiadaptive mode, equals 37.5% load.
 
const types::decikelvin_t HITEMP_OFFSET {100}
 The default temperautre offset between high and critical temperature.
 

Detailed Description

A collection of constants.

Variable Documentation

◆ FREQ_DRIVER_BLACKLIST

const char* const constants::FREQ_DRIVER_BLACKLIST[]
Initial value:
{
"hwpstate_"
}

A list of driver prefixes, that are known not to allow manual frequency control.

◆ TJMAX_SOURCES

const char* const constants::TJMAX_SOURCES[]
Initial value:
{
"dev.cpu.%d.coretemp.tjmax"
}

An array of maximum temperature sources.