]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched: Reenable interrupts in do_sched_yield()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 20 Oct 2020 14:46:55 +0000 (16:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:50 +0000 (11:25 +0100)
commitb6b6ba5754eee1907497504e4b31e22c78f7670f
treeaed4b2c060c1dad8801950a96041339a0c9f1818
parent6db84b27221204c37a53dd7c58b01b5d7e91ce0b
sched: Reenable interrupts in do_sched_yield()

[ Upstream commit 345a957fcc95630bf5535d7668a59ed983eb49a7 ]

do_sched_yield() invokes schedule() with interrupts disabled which is
not allowed. This goes back to the pre git era to commit a6efb709806c
("[PATCH] irqlock patch 2.5.27-H6") in the history tree.

Reenable interrupts and remove the misleading comment which "explains" it.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/87r1pt7y5c.fsf@nanos.tec.linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/sched/core.c