diff options
-rw-r--r-- | cpufreq.c | 4 | ||||
-rw-r--r-- | sysfs.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ #define DIR_BUF_SIZE 1024 -// Validate if we found a file named cpu[0-9][0-9 +// Validate if we found a file named cpu[0-9][0-9] int cpufreq_is_cpu(char *name) { if (strncmp(name,"cpu",3)!=0) return 0; @@ -93,7 +93,7 @@ int cpufreq_set_str(char *parameter,char *value,long int checkdelay) } // This is just a wrapper around cpufreq_set_str with long int to string -// convertion +// conversion int cpufreq_set_long_int(char *parameter,long int value,long int checkdelay) { char buf[255]; @@ -65,7 +65,7 @@ int sysfs_write_str(char *sysfs_file,char *value,long int checkdelay) close(sysfs_handle); DEBUG2_SYSFS("Written %zd bytes\n",len); -// What if instructed to +// Wait if instructed to if (checkdelay>0) usleep(checkdelay); // Validate we actually set what we want to set |