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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 7a7f506 commit a02976c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)