Lines Matching refs:cpu_top
205 struct cpu_topology cpu_top; in get_stored_topology_info() local
213 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info()
217 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info()
223 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info()
224 *core_id = cpu_top.core_id; in get_stored_topology_info()
225 *die_id = cpu_top.die_id; in get_stored_topology_info()
256 struct cpu_topology cpu_top; in store_cpu_topology() local
258 cpu_top.core_id = parse_int_file(0, in store_cpu_topology()
260 if (cpu_top.core_id < 0) in store_cpu_topology()
261 cpu_top.core_id = -1; in store_cpu_topology()
263 cpu_top.pkg_id = parse_int_file(0, in store_cpu_topology()
265 if (cpu_top.pkg_id < 0) in store_cpu_topology()
266 cpu_top.pkg_id = -1; in store_cpu_topology()
268 cpu_top.die_id = parse_int_file(0, in store_cpu_topology()
270 if (cpu_top.die_id < 0) in store_cpu_topology()
271 cpu_top.die_id = -1; in store_cpu_topology()
273 cpu_top.cpu = i; in store_cpu_topology()
275 if (fwrite(&cpu_top, sizeof(cpu_top), 1, fp) != 1) { in store_cpu_topology()