diff options
-rw-r--r-- | arch/hexagon/kernel/setup.c | 5 |
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) | |||
130 | { | 130 | { |
131 | int cpu = (unsigned long) v - 1; | 131 | int cpu = (unsigned long) v - 1; |
132 | 132 | ||
133 | #ifdef CONFIG_SMP | ||
134 | if (!cpu_online(cpu)) | ||
135 | return 0; | ||
136 | #endif | ||
137 | |||
133 | seq_printf(m, "processor\t: %d\n", cpu); | 138 | seq_printf(m, "processor\t: %d\n", cpu); |
134 | seq_printf(m, "model name\t: Hexagon Virtual Machine\n"); | 139 | seq_printf(m, "model name\t: Hexagon Virtual Machine\n"); |
135 | seq_printf(m, "BogoMips\t: %lu.%02lu\n", | 140 | seq_printf(m, "BogoMips\t: %lu.%02lu\n", |