Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
Linus Torvalds [Sat, 23 Oct 2010 00:31:36 +0000 (17:31 -0700)]
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
  percpu: update comments to reflect that percpu allocations are always zero-filled
  percpu: Optimize __get_cpu_var()
  x86, percpu: Optimize this_cpu_ptr
  percpu: clear memory allocated with the km allocator
  percpu: fix build breakage on s390 and cleanup build configuration tests
  percpu: use percpu allocator on UP too
  percpu: reduce PCPU_MIN_UNIT_SIZE to 32k
  vmalloc: pcpu_get/free_vm_areas() aren't needed on UP

Fixed up trivial conflicts in include/linux/percpu.h

1  2 
include/linux/percpu.h
mm/Kconfig
mm/percpu.c
mm/vmalloc.c

        preempt_enable();                               \
  } while (0)
  
 +#define get_cpu_ptr(var) ({                           \
 +      preempt_disable();                              \
 +      this_cpu_ptr(var); })
 +
 +#define put_cpu_ptr(var) do {                         \
 +      (void)(var);                                    \
 +      preempt_enable();                               \
 +} while (0)
 +
- #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
diff --cc mm/Kconfig
Simple merge
diff --cc mm/percpu.c
Simple merge
diff --cc mm/vmalloc.c
Simple merge