mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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
This commit is contained in:
parent
7a7f5065bc
commit
a02976cfce
@ -2499,7 +2499,7 @@ static void run_local_timers(void)
|
||||
*/
|
||||
if (time_after_eq(jiffies, READ_ONCE(base->next_expiry)) ||
|
||||
(i == BASE_DEF && tmigr_requires_handle_remote())) {
|
||||
raise_softirq(TIMER_SOFTIRQ);
|
||||
__raise_softirq_irqoff(TIMER_SOFTIRQ);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user