|
@@ -98,6 +98,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|
seq_printf(m, "physical id\t: %d\n", phys_proc_id[n]);
|
|
seq_printf(m, "physical id\t: %d\n", phys_proc_id[n]);
|
|
seq_printf(m, "siblings\t: %d\n",
|
|
seq_printf(m, "siblings\t: %d\n",
|
|
c->x86_num_cores * smp_num_siblings);
|
|
c->x86_num_cores * smp_num_siblings);
|
|
|
|
+ seq_printf(m, "core id\t\t: %d\n", cpu_core_id[n]);
|
|
|
|
+ seq_printf(m, "cpu cores\t: %d\n", c->x86_num_cores);
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -130,13 +132,6 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
|
c->loops_per_jiffy/(500000/HZ),
|
|
c->loops_per_jiffy/(500000/HZ),
|
|
(c->loops_per_jiffy/(5000/HZ)) % 100);
|
|
(c->loops_per_jiffy/(5000/HZ)) % 100);
|
|
|
|
|
|
-#ifdef CONFIG_SMP
|
|
|
|
- /* Put new fields at the end to lower the probability of
|
|
|
|
- breaking user space parsers. */
|
|
|
|
- seq_printf(m, "core id\t\t: %d\n", cpu_core_id[n]);
|
|
|
|
- seq_printf(m, "cpu cores\t: %d\n", c->x86_num_cores);
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|