sched: Simplify get_nohz_timer_target()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 1 Aug 2023 20:41:22 +0000 (22:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Aug 2023 15:01:24 +0000 (17:01 +0200)
commit7537b90c0036759e0b1b43dfbc6224dc5e900b13
tree2f9a22965c3c92413b17ee0040de768d07d57a3e
parentc1fc6484e1fb7cc2481d169bfef129a1b0676abe
sched: Simplify get_nohz_timer_target()

Use guards to reduce gotos and simplify control flow.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20230801211811.828443100@infradead.org
kernel/sched/core.c