Skip to content

Commit 05dc4a9

Browse files
t-8chThomas Gleixner
authored andcommitted
hrtimer: Fix softirq base check in update_needs_ipi()
The 'clockid' field is not the correct way to check for a softirq base. Fix the check to correctly compare the base type instead of the clockid. Fixes: 1e7f7fb ("hrtimer: Avoid more SMP function calls in clock_was_set()") Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260107-hrtimer-clock-base-check-v1-1-afb5dbce94a1@linutronix.de
1 parent 0f61b18 commit 05dc4a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/time/hrtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ static bool update_needs_ipi(struct hrtimer_cpu_base *cpu_base,
913913
return true;
914914

915915
/* Extra check for softirq clock bases */
916-
if (base->clockid < HRTIMER_BASE_MONOTONIC_SOFT)
916+
if (base->index < HRTIMER_BASE_MONOTONIC_SOFT)
917917
continue;
918918
if (cpu_base->softirq_activated)
919919
continue;

0 commit comments

Comments
 (0)