percpu: cleanup percpu array definitions
Currently, the following three different ways to define percpu arrays are in use. 1. DEFINE_PER_CPU(elem_type[array_len], array_name); 2. DEFINE_PER_CPU(elem_type, array_name[array_len]); 3. DEFINE_PER_CPU(elem_type, array_name)[array_len]; Unify to #1 which correctly separates the roles of the two parameters and thus allows more flexibility in the way percpu variables are defined. [ Impact: cleanup ] Signed-off-by:Tejun Heo <tj@kernel.org> Reviewed-by:
Christoph Lameter <cl@linux-foundation.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Tony Luck <tony.luck@intel.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jeremy Fitzhardinge <jeremy@xensource.com> Cc: linux-mm@kvack.org Cc: Christoph Lameter <cl@linux-foundation.org> Cc: David S. Miller <davem@davemloft.net>
Showing
- arch/ia64/kernel/smp.c 1 addition, 1 deletionarch/ia64/kernel/smp.c
- arch/ia64/sn/kernel/setup.c 1 addition, 1 deletionarch/ia64/sn/kernel/setup.c
- arch/powerpc/mm/stab.c 1 addition, 1 deletionarch/powerpc/mm/stab.c
- arch/powerpc/platforms/ps3/smp.c 1 addition, 1 deletionarch/powerpc/platforms/ps3/smp.c
- arch/x86/kernel/cpu/cpu_debug.c 2 additions, 2 deletionsarch/x86/kernel/cpu/cpu_debug.c
- arch/x86/kernel/cpu/mcheck/mce_amd.c 1 addition, 1 deletionarch/x86/kernel/cpu/mcheck/mce_amd.c
- arch/x86/kernel/cpu/perf_counter.c 1 addition, 1 deletionarch/x86/kernel/cpu/perf_counter.c
- drivers/xen/events.c 2 additions, 2 deletionsdrivers/xen/events.c
- mm/quicklist.c 1 addition, 1 deletionmm/quicklist.c
- mm/slub.c 2 additions, 2 deletionsmm/slub.c
- net/ipv4/syncookies.c 1 addition, 1 deletionnet/ipv4/syncookies.c
- net/ipv6/syncookies.c 1 addition, 1 deletionnet/ipv6/syncookies.c
Loading
Please register or sign in to comment