sched: Simplify wake_up_if_idle()

Use guards to reduce gotos and simplify control flow.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20230801211812.032678917@infradead.org
This commit is contained in:
Peter Zijlstra 2023-08-01 22:41:25 +02:00
commit 4eb054f92b
2 changed files with 21 additions and 14 deletions