Lines Matching refs:cpu_top
246 struct cpu_topology cpu_top; in get_stored_topology_info() local
254 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info()
258 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info()
264 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info()
265 *core_id = cpu_top.core_id; in get_stored_topology_info()
266 *die_id = cpu_top.die_id; in get_stored_topology_info()
297 struct cpu_topology cpu_top; in store_cpu_topology() local
299 cpu_top.core_id = parse_int_file(0, in store_cpu_topology()
301 if (cpu_top.core_id < 0) in store_cpu_topology()
302 cpu_top.core_id = -1; in store_cpu_topology()
304 cpu_top.pkg_id = parse_int_file(0, in store_cpu_topology()
306 if (cpu_top.pkg_id < 0) in store_cpu_topology()
307 cpu_top.pkg_id = -1; in store_cpu_topology()
309 cpu_top.die_id = parse_int_file(0, in store_cpu_topology()
311 if (cpu_top.die_id < 0) in store_cpu_topology()
312 cpu_top.die_id = -1; in store_cpu_topology()
314 cpu_top.cpu = i; in store_cpu_topology()
316 if (fwrite(&cpu_top, sizeof(cpu_top), 1, fp) != 1) { in store_cpu_topology()