]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: cleanup percpu array definitions
authorTejun Heo <tj@kernel.org>
Wed, 24 Jun 2009 06:13:45 +0000 (15:13 +0900)
committerTejun Heo <tj@kernel.org>
Wed, 24 Jun 2009 06:13:45 +0000 (15:13 +0900)
commite4d1573a0847c61b8090ce74065538e28c652670
tree899707e00035f1ec83077c16a7f559ecbcc36986
parent557fca52c214c53af5bef7d3b1c457c6c41b9dd8
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>
12 files changed:
arch/ia64/kernel/smp.c
arch/ia64/sn/kernel/setup.c
arch/powerpc/mm/stab.c
arch/powerpc/platforms/ps3/smp.c
arch/x86/kernel/cpu/cpu_debug.c
arch/x86/kernel/cpu/mcheck/mce_amd.c
arch/x86/kernel/cpu/perf_counter.c
drivers/xen/events.c
mm/quicklist.c
mm/slub.c
net/ipv4/syncookies.c
net/ipv6/syncookies.c