#include #include #include #include #include #include #include #include "debug.h" #include "sysfs.h" #include "cputemp2maxfreq.h" extern struct s_cpudata cpudata; // Set a cpufreq parameter to a value int cpufreq_set_str(char *parameter,char *value,long int checkdelay) { int cpu; char sysfs_file[128]; int done=0; DEBUG1_CPUFREQ("Set %s to %s\n",parameter,value) if (cpudata.cpulist==NULL) { DEBUG1_CPUFREQ("No CPU list\n"); return -1; } for(cpu=0;cpu