summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-09-03 18:22:47 +0200
committerPekka Enberg <penberg@kernel.org>2010-10-02 09:25:47 +0200
commita7b6b77b8917488d2d6b99d82673845e508144a3 (patch)
treebb3490877252f008bb12ecf0d9f4e5f795aa0cd6 /include
parentvmalloc: pcpu_get/free_vm_areas() aren't needed on UP (diff)
downloadlinux-a7b6b77b8917488d2d6b99d82673845e508144a3.tar.xz
linux-a7b6b77b8917488d2d6b99d82673845e508144a3.zip
percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
In preparation of enabling percpu allocator for UP, reduce PCPU_MIN_UNIT_SIZE to 32k. On UP, the first chunk doesn't have to include static percpu variables and chunk size can be smaller which is important as UP percpu allocator will use contiguous kernel memory to populate chunks. PCPU_MIN_UNIT_SIZE also determines the maximum supported allocation size but 32k should still be enough. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/percpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 49466b13c5c6..fc8130a7cac0 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -42,7 +42,7 @@
#ifdef CONFIG_SMP
/* minimum unit size, also is the maximum supported allocation size */
-#define PCPU_MIN_UNIT_SIZE PFN_ALIGN(64 << 10)
+#define PCPU_MIN_UNIT_SIZE PFN_ALIGN(32 << 10)
/*
* Percpu allocator can serve percpu allocations before slab is