sched: Break out core of attach_tasks() helper into sched.h Pull the core of attach_tasks() out into sched.h so it can be used more generically. 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> Link: https://patch.msgid.link/20260807035232.1881495-7-jstultz@google.com