D | datatop_cpu_stats_poll.c | 150 static void cpu_poll_helper(char *file, char *add, int cpu_amt) in cpu_poll_helper() argument 158 nf_len = strlen(file) + strlen(add) + strlen(cpu_num) + 2; in cpu_poll_helper() 162 strlcat(newfile, add, nf_len); in cpu_poll_helper() 176 char *add = "/cpufreq/scaling_cur_freq"; in dtop_cpu_stats_init() local 179 cpu_poll_helper(file, add, cpu_amt); in dtop_cpu_stats_init() 180 add = "/online"; in dtop_cpu_stats_init() 181 cpu_poll_helper(file, add, cpu_amt); in dtop_cpu_stats_init()
|