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 };