percpu: add preemption checks to __this_cpu ops
authorChristoph Lameter <cl@linux.com>
Mon, 7 Apr 2014 22:39:44 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Christoph Lameter <cl@linux.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/percpu.h
lib/smp_processor_id.c