Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 Oct 2010 00:31:36 +0000 (17:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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

index 0eb50832aa00fd1bbc31cc23837abfc698412402,aeeeef1093cd15d5feef4103900a2a9e2ccdb4d8..5095b834a6fb52f1f746257805f34cdabf186528
        preempt_enable();                               \
  } while (0)
  
- #ifdef CONFIG_SMP
 +#define get_cpu_ptr(var) ({                           \
 +      preempt_disable();                              \
 +      this_cpu_ptr(var); })
 +
 +#define put_cpu_ptr(var) do {                         \
 +      (void)(var);                                    \
 +      preempt_enable();                               \
 +} while (0)
 +
  /* 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