Skip to content

Commit a02976c

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
timers: Use __raise_softirq_irqoff() to raise the softirq.
Raising the timer soft interrupt is always done from hard interrupt context, so it can be reduced to just setting the TIMER soft interrupt flag. The soft interrupt will be invoked on return from interrupt. Use therefore __raise_softirq_irqoff() to raise the TIMER soft interrupt, which is a trivial optimization. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/all/20241106150419.2593080-3-bigeasy@linutronix.de
1 parent 7a7f506 commit a02976c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/time/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,7 @@ static void run_local_timers(void)
24992499
*/
25002500
if (time_after_eq(jiffies, READ_ONCE(base->next_expiry)) ||
25012501
(i == BASE_DEF && tmigr_requires_handle_remote())) {
2502-
raise_softirq(TIMER_SOFTIRQ);
2502+
__raise_softirq_irqoff(TIMER_SOFTIRQ);
25032503
return;
25042504
}
25052505
}

0 commit comments

Comments
 (0)