diff options
| author | John Stultz <jstultz@google.com> | 2026-03-24 19:13:24 +0000 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-04-03 14:23:40 +0200 |
| commit | dec9554dc036183c715d02e9cfe48986d453427a (patch) | |
| tree | 47bedeb1059e0fba8072991e98a44cae346def10 /tools/perf/scripts/python | |
| parent | 48fda62de67a1e88fc8bada12caf0fc9b45116df (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
