sched: Introduce preempt_count accessor functions
authorPeter Zijlstra <peterz@infradead.org>
Wed, 14 Aug 2013 12:55:24 +0000 (14:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Sep 2013 12:07:32 +0000 (14:07 +0200)
commit4a2b4b222743bb07fedf985b884550f2ca067ea9
tree587e80512c6cdf727b27d0f806758833547a65ed
parentea8117478918a4734586d35ff530721b682425be
sched: Introduce preempt_count accessor functions

Replace the single preempt_count() 'function' that's an lvalue with
two proper functions:

 preempt_count() - returns the preempt_count value as rvalue
 preempt_count_set() - Allows setting the preempt-count value

Also provide preempt_count_ptr() as a convenience wrapper to implement
all modifying operations.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-orxrbycjozopqfhb4dxdkdvb@git.kernel.org
[ Fixed build failure. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/preempt.h
init/main.c
kernel/sched/core.c
kernel/softirq.c
kernel/timer.c
lib/locking-selftest.c
lib/smp_processor_id.c