Commit 424eb5ae authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Elliot Berman
Browse files

UPSTREAM: sched: Unconditionally use full-fat wait_task_inactive()



While modifying wait_task_inactive() for PREEMPT_RT; the build robot
noted that UP got broken. This led to audit and consideration of the
UP implementation of wait_task_inactive().

It looks like the UP implementation is also broken for PREEMPT;
consider task_current_syscall() getting preempted between the two
calls to wait_task_inactive().

Therefore move the wait_task_inactive() implementation out of
CONFIG_SMP and unconditionally use it.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230602103731.GA630648%40hirez.programming.kicks-ass.net



(cherry picked from commit d5e15866)
Bug: 292064955
Bug: 304294320
Change-Id: Ief91cf48c27533fee47d5bd049c8a9be4010e6f6
Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
(cherry picked from commit b52b33e9)
parent 0904da54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment