diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index c5330f601b68..56aee55cf8dc 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -161,6 +161,10 @@ void __init setup_per_cpu_areas(void) | |||
161 | char *ptr; | 161 | char *ptr; |
162 | int cpu; | 162 | int cpu; |
163 | 163 | ||
164 | /* no processor from mptable or madt */ | ||
165 | if (!num_processors) | ||
166 | num_processors = 1; | ||
167 | |||
164 | #ifdef CONFIG_HOTPLUG_CPU | 168 | #ifdef CONFIG_HOTPLUG_CPU |
165 | prefill_possible_map(); | 169 | prefill_possible_map(); |
166 | #else | 170 | #else |