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) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://patch.msgid.link/[email protected]
This commit is contained in:
Peter Zijlstra (Intel)
2026-02-27 16:40:04 +01:00
committed by Peter Zijlstra
parent 9701537664
commit 5d88e424ec
+1 -1
View File
@@ -5530,7 +5530,7 @@ entity_tick(struct cfs_rq *cfs_rq, struct sched_entity *curr, int queued)
* validating it and just reschedule.
*/
if (queued) {
resched_curr_lazy(rq_of(cfs_rq));
resched_curr(rq_of(cfs_rq));
return;
}
#endif