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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 38e2b2a470a5..dd4eabc747c8 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -217,7 +217,7 @@ proceed:
217 pr_info("PERCPU: Remapped at %p with large pages, static data " 217 pr_info("PERCPU: Remapped at %p with large pages, static data "
218 "%zu bytes\n", vm.addr, static_size); 218 "%zu bytes\n", vm.addr, static_size);
219 219
220 ret = pcpu_setup_first_chunk(pcpur_get_page, static_size, PMD_SIZE, 220 ret = pcpu_setup_first_chunk(pcpur_get_page, static_size, 0, PMD_SIZE,
221 pcpur_size - static_size, vm.addr, NULL); 221 pcpur_size - static_size, vm.addr, NULL);
222 goto out_free_ar; 222 goto out_free_ar;
223 223
@@ -297,7 +297,7 @@ static ssize_t __init setup_pcpu_embed(size_t static_size)
297 pr_info("PERCPU: Embedded %zu pages at %p, static data %zu bytes\n", 297 pr_info("PERCPU: Embedded %zu pages at %p, static data %zu bytes\n",
298 pcpue_size >> PAGE_SHIFT, pcpue_ptr, static_size); 298 pcpue_size >> PAGE_SHIFT, pcpue_ptr, static_size);
299 299
300 return pcpu_setup_first_chunk(pcpue_get_page, static_size, 300 return pcpu_setup_first_chunk(pcpue_get_page, static_size, 0,
301 pcpue_unit_size, dyn_size, 301 pcpue_unit_size, dyn_size,
302 pcpue_ptr, NULL); 302 pcpue_ptr, NULL);
303} 303}
@@ -356,8 +356,8 @@ static ssize_t __init setup_pcpu_4k(size_t static_size)
356 pr_info("PERCPU: Allocated %d 4k pages, static data %zu bytes\n", 356 pr_info("PERCPU: Allocated %d 4k pages, static data %zu bytes\n",
357 pcpu4k_nr_static_pages, static_size); 357 pcpu4k_nr_static_pages, static_size);
358 358
359 ret = pcpu_setup_first_chunk(pcpu4k_get_page, static_size, -1, -1, NULL, 359 ret = pcpu_setup_first_chunk(pcpu4k_get_page, static_size, 0, -1, -1,
360 pcpu4k_populate_pte); 360 NULL, pcpu4k_populate_pte);
361 goto out_free_ar; 361 goto out_free_ar;
362 362
363enomem: 363enomem: