percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
[deliverable/linux.git] / include / linux / percpu.h
index b8b9084527b18029f602c02fe9db5d7c5754364b..fc8130a7cac0bdbcdedad38d6b28d1b69e716688 100644 (file)
@@ -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
@@ -149,7 +149,7 @@ extern void __init percpu_init_late(void);
 
 #else /* CONFIG_SMP */
 
-#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); (ptr); })
+#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR((ptr)); })
 
 /* can't distinguish from other static vars, always false */
 static inline bool is_kernel_percpu_address(unsigned long addr)
This page took 0.02763 seconds and 5 git commands to generate.