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: Make hrtick resched hard

Since the tick causes hard preemption, the hrtick should too.

Letting the hrtick do lazy preemption completely defeats the purpose, since
it will then still be delayed until a old tick and be dependent on
CONFIG_HZ.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260224163428.933894105@kernel.org

+1 -1
+1 -1
kernel/sched/fair.c
··· 5530 5530 * validating it and just reschedule. 5531 5531 */ 5532 5532 if (queued) { 5533 - resched_curr_lazy(rq_of(cfs_rq)); 5533 + resched_curr(rq_of(cfs_rq)); 5534 5534 return; 5535 5535 } 5536 5536 #endif