]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefa03b8e6f31bbe9265290955ed50eb66911a9f1
tree587e80512c6cdf727b27d0f806758833547a65ed
parent24af794ef81a103af469ed4beddbb26035df1851
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