percpu: add preemption checks to __this_cpu ops
authorChristoph Lameter <[email protected]>
Mon, 7 Apr 2014 22:39:44 +0000 (15:39 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 Apr 2014 23:36:14 +0000 (16:36 -0700)
commit188a81409ff7de1c5aae947a96356ddd8ff4aaa3
tree7f2780e62f8a3b33c3cc6ef8b68ee05790909a8d
parent293b6a4c875c3b49853bff7de99954f49f59aa75
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.

[[email protected]: coding-style fixes]
Signed-off-by: Christoph Lameter <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Tejun Heo <[email protected]>
Tested-by: Grygorii Strashko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/percpu.h
lib/smp_processor_id.c