aboutsummaryrefslogtreecommitdiffstats
path: root/mm/percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 997724c2ea24..ed92caa2aa3b 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -850,7 +850,7 @@ size_t __init pcpu_setup_static(pcpu_populate_pte_fn_t populate_pte_fn,
850 pcpu_chunk_size = num_possible_cpus() * pcpu_unit_size; 850 pcpu_chunk_size = num_possible_cpus() * pcpu_unit_size;
851 pcpu_nr_slots = pcpu_size_to_slot(pcpu_unit_size) + 1; 851 pcpu_nr_slots = pcpu_size_to_slot(pcpu_unit_size) + 1;
852 pcpu_chunk_struct_size = sizeof(struct pcpu_chunk) 852 pcpu_chunk_struct_size = sizeof(struct pcpu_chunk)
853 + (1 << pcpu_unit_pages_shift) * sizeof(struct page *); 853 + num_possible_cpus() * pcpu_unit_pages * sizeof(struct page *);
854 854
855 /* allocate chunk slots */ 855 /* allocate chunk slots */
856 pcpu_slot = alloc_bootmem(pcpu_nr_slots * sizeof(pcpu_slot[0])); 856 pcpu_slot = alloc_bootmem(pcpu_nr_slots * sizeof(pcpu_slot[0]));