]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf326ff60a86c8880a47cf3940249f37e3b628789
tree7f2780e62f8a3b33c3cc6ef8b68ee05790909a8d
parentce18e4b6704aa3021a828e976970dc6fa7681f86
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