diff options
| author | Shrikanth Hegde <sshegde@linux.ibm.com> | 2025-10-14 15:33:41 +0530 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-11-11 17:27:55 +0100 |
| commit | 65177ea9f64d7402a0b8028e0dbbd01e8a9d1b1d (patch) | |
| tree | 9ae5faba490bac061078278d2914e14609a41728 | |
| parent | b4bfacd39216755c058f6d13c71c86a9bf5a1631 (diff) | |
sched/deadline: Minor cleanup in select_task_rq_dl()
In select_task_rq_dl, there is only one goto statement, there is no
need for it.
No functional changes.
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://patch.msgid.link/20251014100342.978936-2-sshegde@linux.ibm.com
| -rw-r--r-- | kernel/sched/deadline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 4dd4b2fb2934..67f540c23717 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -2384,7 +2384,7 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags) struct rq *rq; if (!(flags & WF_TTWU)) - goto out; + return cpu; rq = cpu_rq(cpu); @@ -2422,7 +2422,6 @@ select_task_rq_dl(struct task_struct *p, int cpu, int flags) } rcu_read_unlock(); -out: return cpu; } |
