diff options
| author | Frederic Weisbecker <[email protected]> | 2011-06-08 01:13:27 +0200 |
|---|---|---|
| committer | Frederic Weisbecker <[email protected]> | 2011-06-10 15:15:40 +0200 |
| commit | bdd4e85dc36cdbcfc1608a5b2a17c80a9db8986a (patch) | |
| tree | 9cee98e78a5aa6a00f3b7ce805b1e39a0137b4a4 /kernel/rtmutex-debug.c | |
| parent | 2da8c8bc44b572cbf623629ff736608dc7968436 (diff) | |
sched: Isolate preempt counting in its own config option
Create a new CONFIG_PREEMPT_COUNT that handles the inc/dec
of preempt count offset independently. So that the offset
can be updated by preempt_disable() and preempt_enable()
even without the need for CONFIG_PREEMPT beeing set.
This prepares to make CONFIG_DEBUG_SPINLOCK_SLEEP working
with !CONFIG_PREEMPT where it currently doesn't detect
code that sleeps inside explicit preemption disabled
sections.
Signed-off-by: Frederic Weisbecker <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'kernel/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions