diff options
Diffstat (limited to 'arch/hexagon/kernel/setup.c')
-rw-r--r-- | arch/hexagon/kernel/setup.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/hexagon/kernel/setup.c b/arch/hexagon/kernel/setup.c index 94a387835008..bfe13311d70d 100644 --- a/arch/hexagon/kernel/setup.c +++ b/arch/hexagon/kernel/setup.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Arch related setup for Hexagon | 2 | * Arch related setup for Hexagon |
3 | * | 3 | * |
4 | * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. | 4 | * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License version 2 and | 7 | * it under the terms of the GNU General Public License version 2 and |
@@ -68,6 +68,8 @@ void __init setup_arch(char **cmdline_p) | |||
68 | */ | 68 | */ |
69 | __vmsetvec(_K_VM_event_vector); | 69 | __vmsetvec(_K_VM_event_vector); |
70 | 70 | ||
71 | printk(KERN_INFO "PHYS_OFFSET=0x%08x\n", PHYS_OFFSET); | ||
72 | |||
71 | /* | 73 | /* |
72 | * Simulator has a few differences from the hardware. | 74 | * Simulator has a few differences from the hardware. |
73 | * For now, check uninitialized-but-mapped memory | 75 | * For now, check uninitialized-but-mapped memory |
@@ -128,6 +130,11 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
128 | { | 130 | { |
129 | int cpu = (unsigned long) v - 1; | 131 | int cpu = (unsigned long) v - 1; |
130 | 132 | ||
133 | #ifdef CONFIG_SMP | ||
134 | if (!cpu_online(cpu)) | ||
135 | return 0; | ||
136 | #endif | ||
137 | |||
131 | seq_printf(m, "processor\t: %d\n", cpu); | 138 | seq_printf(m, "processor\t: %d\n", cpu); |
132 | seq_printf(m, "model name\t: Hexagon Virtual Machine\n"); | 139 | seq_printf(m, "model name\t: Hexagon Virtual Machine\n"); |
133 | seq_printf(m, "BogoMips\t: %lu.%02lu\n", | 140 | seq_printf(m, "BogoMips\t: %lu.%02lu\n", |