diff options
| author | 2026-03-24 19:13:24 +0000 | |
|---|---|---|
| committer | 2026-04-03 14:23:40 +0200 | |
| commit | dec9554dc036183c715d02e9cfe48986d453427a (patch) | |
| tree | 47bedeb1059e0fba8072991e98a44cae346def10 /samples/kobject/ssh:/git@git.zx2c4.com | |
| parent | sched: Add logic to zap balance callbacks if we pick again (diff) | |
sched: Move attach_one_task and attach_task helpers to sched.h
The fair scheduler locally introduced attach_one_task() and
attach_task() helpers, but these could be generically useful so
move this code to sched.h so we can use them elsewhere.
One minor tweak made to utilize guard(rq_lock)(rq) to simplifiy
the function.
Suggested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://patch.msgid.link/20260324191337.1841376-10-jstultz@google.com
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
