Lines Matching refs:cpu_nr
1704 * @cpu_nr CPU number for which time_in_state date will be read.
1711 void read_time_in_state(struct stats_pwr_wghfreq *st_pwr_wghfreq, int cpu_nr, int nbr)
1722 SYSFS_DEVCPU, cpu_nr, SYSFS_TIME_IN_STATE);
2155 int cpu_nr;
2157 if ((cpu_nr = get_sys_cpu_nr()) == 0) {
2159 cpu_nr = get_proc_cpu_nr();
2162 if (cpu_nr > max_nr_cpus) {
2167 return cpu_nr;
2179 * @cpu_nr Number of processors.
2185 int get_irqcpu_nr(char *file, int max_nr_irqcpu, int cpu_nr)
2195 SREALLOC(line, char, INTERRUPTS_LINE + 11 * cpu_nr);
2197 while ((fgets(line, INTERRUPTS_LINE + 11 * cpu_nr , fp) != NULL) &&