Lines Matching refs:cpu
1756 struct cpu { in uv_cpu_info() struct
1765 unsigned cpu; in uv_cpu_info() local
1769 struct cpu (*cpus)[8192]; /* Kernel maximum. */ in uv_cpu_info()
1770 struct cpu* c; in uv_cpu_info()
1771 struct cpu t; in uv_cpu_info()
1802 &cpu, &t.user, &t.nice, &t.sys, &t.idle, &skip, &t.irq); in uv_cpu_info()
1810 if (cpu >= ARRAY_SIZE(*cpus)) in uv_cpu_info()
1813 (*cpus)[cpu] = t; in uv_cpu_info()
1815 bitmap[cpu >> 3] |= 1 << (cpu & 7); in uv_cpu_info()
1817 if (cpu >= maxcpu) in uv_cpu_info()
1818 maxcpu = cpu + 1; in uv_cpu_info()
1828 if (1 != fscanf(fp, "processor\t: %u\n", &cpu)) in uv_cpu_info()
1869 if (cpu < maxcpu) in uv_cpu_info()
1870 (*cpus)[cpu].model = model - models; in uv_cpu_info()
1884 for (cpu = 0; cpu < maxcpu; cpu++) { in uv_cpu_info()
1885 if (!(bitmap[cpu >> 3] & (1 << (cpu & 7)))) in uv_cpu_info()
1890 "/sys/devices/system/cpu/cpu%u/cpufreq/scaling_cur_freq", cpu); in uv_cpu_info()
1896 if (1 != fscanf(fp, "%llu", &(*cpus)[cpu].freq)) in uv_cpu_info()
1915 for (cpu = 0; cpu < maxcpu; cpu++) { in uv_cpu_info()
1916 if (!(bitmap[cpu >> 3] & (1 << (cpu & 7)))) in uv_cpu_info()
1919 c = *cpus + cpu; in uv_cpu_info()