summaryrefslogtreecommitdiff
path: root/kernel/sched/idle.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-08-30 07:54:41 -1000
committerTejun Heo <tj@kernel.org>2024-08-30 19:35:19 -1000
commit62607d033bb8dc417c2fd06f37f433d468023e66 (patch)
treee2dc8029b196c7f6031e98c087bfa581595be3f4 /kernel/sched/idle.c
parent0366017e0973a52245787e972c8ac68a88692bba (diff)
sched_ext: Use sched_clock_cpu() instead of rq_clock_task() in touch_core_sched()
Since 3cf78c5d01d6 ("sched_ext: Unpin and repin rq lock from balance_scx()"), sched_ext's balance path terminates rq_pin in the outermost function. This is simpler and in line with what other balance functions are doing but it loses control over rq->clock_update_flags which makes assert_clock_udpated() trigger if other CPUs pins the rq lock. The only place this matters is touch_core_sched() which uses the timestamp to order tasks from sibling rq's. Switch to sched_clock_cpu(). Later, it may be better to use per-core dispatch sequence number. v2: Use sched_clock_cpu() instead of ktime_get_ns() per David. Signed-off-by: Tejun Heo <tj@kernel.org> Fixes: 3cf78c5d01d6 ("sched_ext: Unpin and repin rq lock from balance_scx()") Acked-by: David Vernet <void@manifault.com> Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/sched/idle.c')
0 files changed, 0 insertions, 0 deletions