aboutsummaryrefslogtreecommitdiff
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2015-09-28 18:02:03 +0200
committerMoyster <oysterized@gmail.com>2019-05-02 18:30:05 +0200
commit559fd8158b1f63102feece0dcc05dacb357bd0f6 (patch)
treea7caf11f7c93043748042027c4a1f0e05de5156d /include/linux/suspend.h
parent48db9eb1237317a087d36f5ecd6e7ac96ff23b81 (diff)
sched/core: Rework TASK_DEAD preemption exception
TASK_DEAD is special in that the final schedule call from do_exit() must be done with preemption disabled. This means we end up scheduling with a preempt_count() higher than usual (3 instead of the 'expected' 2). Since future patches will want to rely on an invariant preempt_count() value during schedule, fix this up. Change-Id: Icd3a40be4171553bb2d71fd7a82b6fac55218a12 Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com> Reviewed-by: Steven Rostedt <rostedt@goodmis.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/suspend.h')
0 files changed, 0 insertions, 0 deletions