diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2026-05-27 09:58:02 +0200 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-06-02 12:26:08 +0200 |
| commit | 7918cf3693614c9f96bc9e43daff6fc72c01b81a (patch) | |
| tree | bc7f64465df2b902cf90439c3f5dbe955b4ce119 /scripts/kconfig/icons/git@git.tavy.me:linux.git | |
| parent | 708024b575b4ea58c5956e7c09f2d2f48facd478 (diff) | |
sched/proxy: Only return migrate when needed
Current code will 'unconditionally' return migrate on PROXY_WAKING, even if the
task is (still) on the original CPU.
Check task_cpu(p) against p->waking_cpu, which per proxy_set_task_cpu()
preserves the original CPU the task was on. If they do not mis-match, there is
no need to go through the more expensive wakeup path.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260527082916.GP3126523%40noisy.programming.kicks-ass.net
Diffstat (limited to 'scripts/kconfig/icons/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
