Lines Matching refs:cpu_top
242 struct cpu_topology cpu_top;
250 ret = fseek(fp, cpu * sizeof(cpu_top), SEEK_SET);
254 ret = fread(&cpu_top, sizeof(cpu_top), 1, fp);
260 *pkg_id = cpu_top.pkg_id;
261 *core_id = cpu_top.core_id;
262 *die_id = cpu_top.die_id;
293 struct cpu_topology cpu_top;
295 cpu_top.core_id = parse_int_file(0,
297 if (cpu_top.core_id < 0)
298 cpu_top.core_id = -1;
300 cpu_top.pkg_id = parse_int_file(0,
302 if (cpu_top.pkg_id < 0)
303 cpu_top.pkg_id = -1;
305 cpu_top.die_id = parse_int_file(0,
307 if (cpu_top.die_id < 0)
308 cpu_top.die_id = -1;
310 cpu_top.cpu = i;
312 if (fwrite(&cpu_top, sizeof(cpu_top), 1, fp) != 1) {