sched/core: Make select_task_rq() take the pointer to wake_flags instead of value
authorTejun Heo <tj@kernel.org>
Fri, 27 Sep 2024 23:46:11 +0000 (13:46 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 7 Oct 2024 20:16:18 +0000 (10:16 -1000)
commitb62933eee41e2909422c2c3d7fdb56217913faf9
treef26475ccdff918a5ac055834c006926f88a3cb8d
parentec010333ce7cf3270ae7193a6724794d5a179625
sched/core: Make select_task_rq() take the pointer to wake_flags instead of value

This will be used to allow select_task_rq() to indicate whether
->select_task_rq() was called by modifying *wake_flags.

This makes try_to_wake_up() call all functions that take wake_flags with
WF_TTWU set. Previously, only select_task_rq() was. Using the same flags is
more consistent, and, as the flag is only tested by ->select_task_rq()
implementations, it doesn't cause any behavior differences.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/core.c