diff options
| author | Peter Zijlstra <peterz@infradead.org> | 2026-05-27 10:58:02 +0300 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-06-02 13:26:08 +0300 |
| commit | 7918cf3693614c9f96bc9e43daff6fc72c01b81a (patch) | |
| tree | bc7f64465df2b902cf90439c3f5dbe955b4ce119 /include/linux/workqueue_api.h | |
| parent | 708024b575b4ea58c5956e7c09f2d2f48facd478 (diff) | |
| download | linux-7918cf3693614c9f96bc9e43daff6fc72c01b81a.tar.xz | |
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 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
