diff options
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 287f59cc5fb9..3316e3aac7ee 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1578,7 +1578,7 @@ ssize_t __init pcpu_page_first_chunk(size_t reserved_size, | |||
1578 | for (i = 0; i < unit_pages; i++) { | 1578 | for (i = 0; i < unit_pages; i++) { |
1579 | void *ptr; | 1579 | void *ptr; |
1580 | 1580 | ||
1581 | ptr = alloc_fn(cpu, PAGE_SIZE); | 1581 | ptr = alloc_fn(cpu, PAGE_SIZE, PAGE_SIZE); |
1582 | if (!ptr) { | 1582 | if (!ptr) { |
1583 | pr_warning("PERCPU: failed to allocate %s page " | 1583 | pr_warning("PERCPU: failed to allocate %s page " |
1584 | "for cpu%u\n", psize_str, cpu); | 1584 | "for cpu%u\n", psize_str, cpu); |
@@ -1888,7 +1888,7 @@ ssize_t __init pcpu_lpage_first_chunk(size_t reserved_size, size_t dyn_size, | |||
1888 | goto found; | 1888 | goto found; |
1889 | continue; | 1889 | continue; |
1890 | found: | 1890 | found: |
1891 | ptr = alloc_fn(cpu, lpage_size); | 1891 | ptr = alloc_fn(cpu, lpage_size, lpage_size); |
1892 | if (!ptr) { | 1892 | if (!ptr) { |
1893 | pr_warning("PERCPU: failed to allocate large page " | 1893 | pr_warning("PERCPU: failed to allocate large page " |
1894 | "for cpu%u\n", cpu); | 1894 | "for cpu%u\n", cpu); |