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.

[ coding-style fixes]
Signed-off-by: Christoph Lameter <>
Acked-by: Ingo Molnar <>
Cc: Tejun Heo <>
Tested-by: Grygorii Strashko <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
2 files changed