Skip to contentSkip to conversation

powerpc: fix cpu name in show-cpuinfo

PATCH New Michael Wolf 1 participant 1 message Dec 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix cpu name in show-cpuinfo

When looking at /proc/cpuinfo the cpuname will be 'unknown" if the pvr mask is 0. This is the case for the kernel running on new or unknown hardware. However the cpuname is always specified so use the name regardless of the pvr mask.

---
--- mainline.orig/arch/powerpc/kernel/setup-common.c 2009-12-15
11:33:36.000000000 -0600
+++ mainline/arch/powerpc/kernel/setup-common.c 2009-12-16
11:26:26.000000000 -0600
@@ -219,7 +219,7 @@
seq_printf(m, "processor\t: %lu\n", cpu_id); seq_printf(m, "cpu\t\t: ");

- if (cur_cpu_spec->pvr_mask)
+ if (cur_cpu_spec->cpu_name)
seq_printf(m, "%s", cur_cpu_spec->cpu_name);
else
seq_printf(m, "unknown (%08x)", pvr);