Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched/fair: Limit hrtick work

The task_tick_fair() function does:

- update the hierarchical runtimes
- drive NUMA-balancing
- update load-balance statistics
- drive force-idle preemption

All but the very first can be limited to the periodic tick. Let hrtick
only update accounting and drive preemption, not load-balancing and
other bits.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20250918080205.563385766@infradead.org

authored by

Peter Zijlstra and committed by
Ingo Molnar
95a01552 a03fee33

+6
+6
kernel/sched/fair.c
··· 13332 13332 entity_tick(cfs_rq, se, queued); 13333 13333 } 13334 13334 13335 + if (queued) { 13336 + if (!need_resched()) 13337 + hrtick_start_fair(rq, curr); 13338 + return; 13339 + } 13340 + 13335 13341 if (static_branch_unlikely(&sched_numa_balancing)) 13336 13342 task_tick_numa(rq, curr); 13337 13343