summaryrefslogtreecommitdiffstats
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-06-17 19:12:37 -0400
committerTejun Heo <tj@kernel.org>2014-06-17 19:12:37 -0400
commit3b8ed91d6463f48ab180f5ebedc9663eddfa0587 (patch)
treeaa4bc7521723915ab12f52547df938a9f0e8a2cc /include/linux/percpu.h
parent9defda18f913181debfe7cdc8c0a752f707ac861 (diff)
downloadlinux-3b8ed91d6463f48ab180f5ebedc9663eddfa0587.tar.gz
linux-3b8ed91d6463f48ab180f5ebedc9663eddfa0587.tar.bz2
linux-3b8ed91d6463f48ab180f5ebedc9663eddfa0587.zip
percpu: reorganize include/linux/percpu-defs.h
Reorganize for better readability. * Accessor definitions are collected into one place and SMP and UP now define them in the same order. * Definitions are layered when possible - e.g. per_cpu() is now defined in terms of this_cpu_ptr(). * Rather pointless comment dropped. * per_cpu(), __raw_get_cpu_var() and __get_cpu_var() are defined in a way which can be shared between SMP and UP and moved out of CONFIG_SMP blocks. This patch doesn't introduce any functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Christoph Lameter <cl@linux-foundation.org>
Diffstat (limited to 'include/linux/percpu.h')
0 files changed, 0 insertions, 0 deletions