summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/percpu.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-10-29 14:34:15 +0100
committerTejun Heo <tj@kernel.org>2009-10-29 14:34:15 +0100
commitf7b64fe806029e0a0454df132eec3c5ab576102c (patch)
tree04812617c2c64f0fa169df3b63686079df1131d6 /include/asm-generic/percpu.h
parentpercpu: remove per_cpu__ prefix. (diff)
downloadlinux-f7b64fe806029e0a0454df132eec3c5ab576102c.tar.xz
linux-f7b64fe806029e0a0454df132eec3c5ab576102c.zip
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>
Diffstat (limited to 'include/asm-generic/percpu.h')
0 files changed, 0 insertions, 0 deletions