aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r--arch/x86/kernel/setup_percpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 7501bb14bd51..a26ff61e2fb0 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -177,7 +177,7 @@ static ssize_t __init setup_pcpu_lpage(size_t static_size, bool chosen)
177 } 177 }
178 178
179 /* allocate and build unit_map */ 179 /* allocate and build unit_map */
180 unit_map_size = num_possible_cpus() * sizeof(int); 180 unit_map_size = nr_cpu_ids * sizeof(int);
181 unit_map = alloc_bootmem_nopanic(unit_map_size); 181 unit_map = alloc_bootmem_nopanic(unit_map_size);
182 if (!unit_map) { 182 if (!unit_map) {
183 pr_warning("PERCPU: failed to allocate unit_map\n"); 183 pr_warning("PERCPU: failed to allocate unit_map\n");