percpu: make access macros universal
commitf7b64fe806029e0a0454df132eec3c5ab576102c
authorTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:15 +0000 (29 22:34 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:15 +0000 (29 22:34 +0900)
tree04812617c2c64f0fa169df3b63686079df1131d6
parentdd17c8f72993f9461e9c19250e3f155d6d99df22
percpu: make access macros universal

Now that per_cpu__ prefix is gone, there's no distinction between
static and dynamic percpu variables.  Make get_cpu_var() take dynamic
percpu variables and ensure that all macros have parentheses around
the parameter evaluation and evaluate the variable parameter only once
such that any expression which evaluates to percpu address can be used
safely.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/percpu.h