aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-24 04:22:02 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-07-24 05:41:26 -0400
commit514e0e295511c6a4a54eb0228ccbb519162cc088 (patch)
tree8787cdc7e2fc3e19335b3c29bbb4cdceae549f97 /kernel/exit.c
parent030dc4adec445a7a670ef7a4ef664f83f3943c30 (diff)
sched: Debug missed preemption checks
Developers use preempt_enable_no_resched() in places where the code calls schedule() immediately which is correct. But there are places where preempt_enable_no_resched() is not followed by schedule(). Add debug infrastructre to find the offending code. The identified correct users are converted to use __preempt_enable_no_resched(). For the ever repeating "preempt_enable_no_resched(); schedule();" sequences a onvenience macro preempt_enable_and_schedule() is introduced. Based on a previous patch from Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions