Messages in this thread Patch in this message | | | From | Sebastian Andrzej Siewior <> | Subject | [PATCH 2/2] tick: Mark sched_timer in hard interrupt context | Date | Fri, 23 Aug 2019 13:38:45 +0200 |
| |
The sched_timer should be initialized with the _HARD suffix. Most of this already happened in commit 902a9f9c50905 ("tick: Mark tick related hrtimers to expiry in hard interrupt context")
but this one instance has been missed.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- kernel/time/tick-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index cc1a322121b4b..433879b35cbb7 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1239,7 +1239,7 @@ static void tick_nohz_switch_to_nohz(void) * Recycle the hrtimer in ts, so we can share the * hrtimer_forward with the highres code. */ - hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); + hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); /* Get the next period */ next = tick_init_jiffy_update(); -- 2.23.0
| |