Commit 7675361
sched: deadline: Cleanup goto label in pick_earliest_pushable_dl_task
Commit 8b5e770 ("sched/deadline: Optimize pull_dl_task()")
added a goto label seems would be better written as a while
loop.
So replace the goto with a while loop, to make it easier to read.
Reported-by: Todd Kjos <tkjos@google.com>
Signed-off-by: John Stultz <jstultz@google.com>
Reviewed-and-tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lore.kernel.org/r/20241206000009.1226085-1-jstultz@google.com1 parent 7d5265f commit 7675361
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2516 | 2516 | | |
2517 | 2517 | | |
2518 | 2518 | | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
| 2519 | + | |
2522 | 2520 | | |
2523 | 2521 | | |
2524 | 2522 | | |
2525 | 2523 | | |
2526 | 2524 | | |
2527 | 2525 | | |
2528 | | - | |
2529 | 2526 | | |
2530 | 2527 | | |
2531 | 2528 | | |
| |||
0 commit comments