|
@@ -574,12 +574,9 @@ void machine_power_off(void)
|
|
|
static int
|
|
static int
|
|
|
c_show(struct seq_file *f, void *slot)
|
|
c_show(struct seq_file *f, void *slot)
|
|
|
{
|
|
{
|
|
|
- char buf[NR_CPUS * 5];
|
|
|
|
|
-
|
|
|
|
|
- cpulist_scnprintf(buf, sizeof(buf), cpu_online_mask);
|
|
|
|
|
/* high-level stuff */
|
|
/* high-level stuff */
|
|
|
seq_printf(f, "CPU count\t: %u\n"
|
|
seq_printf(f, "CPU count\t: %u\n"
|
|
|
- "CPU list\t: %s\n"
|
|
|
|
|
|
|
+ "CPU list\t: %*pbl\n"
|
|
|
"vendor_id\t: Tensilica\n"
|
|
"vendor_id\t: Tensilica\n"
|
|
|
"model\t\t: Xtensa " XCHAL_HW_VERSION_NAME "\n"
|
|
"model\t\t: Xtensa " XCHAL_HW_VERSION_NAME "\n"
|
|
|
"core ID\t\t: " XCHAL_CORE_ID "\n"
|
|
"core ID\t\t: " XCHAL_CORE_ID "\n"
|
|
@@ -588,7 +585,7 @@ c_show(struct seq_file *f, void *slot)
|
|
|
"cpu MHz\t\t: %lu.%02lu\n"
|
|
"cpu MHz\t\t: %lu.%02lu\n"
|
|
|
"bogomips\t: %lu.%02lu\n",
|
|
"bogomips\t: %lu.%02lu\n",
|
|
|
num_online_cpus(),
|
|
num_online_cpus(),
|
|
|
- buf,
|
|
|
|
|
|
|
+ cpumask_pr_args(cpu_online_mask),
|
|
|
XCHAL_BUILD_UNIQUE_ID,
|
|
XCHAL_BUILD_UNIQUE_ID,
|
|
|
XCHAL_HAVE_BE ? "big" : "little",
|
|
XCHAL_HAVE_BE ? "big" : "little",
|
|
|
ccount_freq/1000000,
|
|
ccount_freq/1000000,
|