* [PATCH] powerpc: fix cpu name in show-cpuinfo
@ 2009-12-16 17:53 Michael Wolf
0 siblings, 0 replies; only message in thread
From: Michael Wolf @ 2009-12-16 17:53 UTC (permalink / raw)
To: linuxppc-dev
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.
Signed-off-by: Mike Wolf <mjw@us.ibm.com>
---
--- 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-16 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 17:53 [PATCH] powerpc: fix cpu name in show-cpuinfo Michael Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).