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