Lines Matching refs:cpu
23 static int sysfs_topology_read_file(unsigned int cpu, const char *fname, int *result) in sysfs_topology_read_file() argument
30 cpu, fname); in sysfs_topology_read_file()
51 else if (top1->cpu < top2->cpu) in __compare()
53 else if (top1->cpu > top2->cpu) in __compare()
67 int cpu, last_pkg, cpus = sysconf(_SC_NPROCESSORS_CONF); in get_cpu_topology() local
73 for (cpu = 0; cpu < cpus; cpu++) { in get_cpu_topology()
74 cpu_top->core_info[cpu].cpu = cpu; in get_cpu_topology()
75 cpu_top->core_info[cpu].is_online = sysfs_is_cpu_online(cpu); in get_cpu_topology()
77 cpu, in get_cpu_topology()
79 &(cpu_top->core_info[cpu].pkg)) < 0) in get_cpu_topology()
82 cpu, in get_cpu_topology()
84 &(cpu_top->core_info[cpu].core)) < 0) in get_cpu_topology()
95 for(cpu = 1; cpu < cpus; cpu++) { in get_cpu_topology()
96 if(cpu_top->core_info[cpu].pkg != last_pkg) { in get_cpu_topology()
97 last_pkg = cpu_top->core_info[cpu].pkg; in get_cpu_topology()