aboutsummaryrefslogtreecommitdiffstats
path: root/cputemp2maxfreq.h
blob: ef33fd57a4fc705952ae75a802c5193429995a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct s_cpudata {
 long int min_freq;  // CPU's minimum frequency
 long int max_freq;  // CPU's maximum frequency
 long int cur_freq;  // CPU's current frequency
 long int cur_temp;  // CPU's current temperature
 long int scale_max; // Governor's maximum scaling frequency
};

struct s_config {
 char     *governor;   // The governor to use
 long int  max_temp;   // The target temperature
 char     *temp_input; // Input file to read the temperature
 long int  freq_step;  // Step size to increase/decrease CPU frequency
 long int  fallback_freq; // CPU frquency to set if we fail to protect hardware
 unsigned int interval;   // Time interval to check CPU temperature
};