]> git.karo-electronics.de Git - karo-tx-linux.git/commit
percpu: add preemption checks to __this_cpu ops
authorChristoph Lameter <cl@linux.com>
Thu, 6 Mar 2014 00:05:21 +0000 (11:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Mar 2014 07:13:33 +0000 (18:13 +1100)
commita25982c15ae5298520033cd5848a82adf6a97376
tree48fb30113b3a1f3a8df2b241d4dd8201c9aa8cae
parent26d02cfa385067c39c0407b022c01a011c2fbb51
percpu: add preemption checks to __this_cpu ops

We define a check function in order to avoid trouble with the include
files.  Then the higher level __this_cpu macros are modified to invoke the
preemption check.

Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/percpu.h
lib/smp_processor_id.c