summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/kernel
diff options
context:
space:
mode:
authorRichard Kuo <rkuo@codeaurora.org>2013-02-04 21:17:15 +0100
committerRichard Kuo <rkuo@codeaurora.org>2013-05-01 02:40:25 +0200
commit2b3c744c3bcaab14ad2cc0f067d76c2f119085a5 (patch)
tree70f116281bcba799a12308c460228670b75360d4 /arch/hexagon/kernel
parentHexagon: add support for single-stepping (v4+) (diff)
downloadlinux-2b3c744c3bcaab14ad2cc0f067d76c2f119085a5.tar.xz
linux-2b3c744c3bcaab14ad2cc0f067d76c2f119085a5.zip
Hexagon: don't print info for offline CPU's
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon/kernel')
-rw-r--r--arch/hexagon/kernel/setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/setup.c b/arch/hexagon/kernel/setup.c
index 2e2304f7b7ee..d2dcb6bcdad7 100644
--- a/arch/hexagon/kernel/setup.c
+++ b/arch/hexagon/kernel/setup.c
@@ -130,6 +130,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
{
int cpu = (unsigned long) v - 1;
+#ifdef CONFIG_SMP
+ if (!cpu_online(cpu))
+ return 0;
+#endif
+
seq_printf(m, "processor\t: %d\n", cpu);
seq_printf(m, "model name\t: Hexagon Virtual Machine\n");
seq_printf(m, "BogoMips\t: %lu.%02lu\n",