Skip to content

Commit 71fed98

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
tick: Mark sched_timer to expire in hard interrupt context
sched_timer must be initialized with the _HARD mode suffix to ensure expiry in hard interrupt context on RT. The previous conversion to HARD expiry mode missed on one instance in tick_nohz_switch_to_nohz(). Fix it up. Fixes: 902a9f9 ("tick: Mark tick related hrtimers to expiry in hard interrupt context") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent a67e408 commit 71fed98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/tick-sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ static void tick_nohz_switch_to_nohz(void)
12331233
* Recycle the hrtimer in ts, so we can share the
12341234
* hrtimer_forward with the highres code.
12351235
*/
1236-
hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
1236+
hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD);
12371237
/* Get the next period */
12381238
next = tick_init_jiffy_update();
12391239

0 commit comments

Comments
 (0)