Lines Matching refs:cpu_top
223 struct cpu_topology cpu_top; in get_stored_topology_info() local
231 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET); in get_stored_topology_info()
235 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp); in get_stored_topology_info()
241 *pkg_id = cpu_top.pkg_id; in get_stored_topology_info()
242 *core_id = cpu_top.core_id; in get_stored_topology_info()
243 *die_id = cpu_top.die_id; in get_stored_topology_info()
274 struct cpu_topology cpu_top; in store_cpu_topology() local
276 cpu_top.core_id = parse_int_file(0, in store_cpu_topology()
278 if (cpu_top.core_id < 0) in store_cpu_topology()
279 cpu_top.core_id = -1; in store_cpu_topology()
281 cpu_top.pkg_id = parse_int_file(0, in store_cpu_topology()
283 if (cpu_top.pkg_id < 0) in store_cpu_topology()
284 cpu_top.pkg_id = -1; in store_cpu_topology()
286 cpu_top.die_id = parse_int_file(0, in store_cpu_topology()
288 if (cpu_top.die_id < 0) in store_cpu_topology()
289 cpu_top.die_id = -1; in store_cpu_topology()
291 cpu_top.cpu = i; in store_cpu_topology()
293 if (fwrite(&cpu_top, sizeof(cpu_top), 1, fp) != 1) { in store_cpu_topology()