projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7777746
)
Hexagon: don't print info for offline CPU's
author
Richard Kuo
<rkuo@codeaurora.org>
Mon, 4 Feb 2013 20:17:15 +0000
(14:17 -0600)
committer
Richard Kuo
<rkuo@codeaurora.org>
Wed, 1 May 2013 00:40:25 +0000
(19:40 -0500)
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
arch/hexagon/kernel/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/hexagon/kernel/setup.c
b/arch/hexagon/kernel/setup.c
index 2e2304f7b7eeea420ac906f82e5026cc6d095f23..d2dcb6bcdad76bc5c3f02d6e7cdec68d59c5d2ab 100644
(file)
--- 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",