Thread (10 messages) flat view 10 messages, 3 authors, 2015-05-08

Re: [PATCH 2/6] powerpc: Add cpu name to dump stack arch description

From: Michael Neuling <hidden>
Date: 2015-05-06 23:50:15
Also in: lkml

On Tue, 2015-05-05 at 21:12 +1000, Michael Ellerman wrote:
quoted hunk ↗ jump to hunk
As soon as we know the name of the cpu we're on, add it to the dump
stack arch description, which is printed in case of an oops.
=20
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/kernel/cputable.c | 3 +++
 1 file changed, 3 insertions(+)
=20
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputabl=
e.c
quoted hunk ↗ jump to hunk
index 60262fdf35ba..cf5e0c9b80cb 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -15,6 +15,7 @@
 #include <linux/threads.h>
 #include <linux/init.h>
 #include <linux/export.h>
+#include <linux/printk.h>
=20
 #include <asm/oprofile_impl.h>
 #include <asm/cputable.h>
@@ -2174,6 +2175,8 @@ static struct cpu_spec * __init setup_cpu_spec(unsi=
gned long offset,
 	}
 #endif /* CONFIG_PPC64 || CONFIG_BOOKE */
=20
+	dump_stack_add_arch_desc(t->cpu_name);
+
Can we make this the PVR instead if the name?  It gives us more fidelity
on what the hardware revision is.

Mikey
 	return t;
 }
=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help