hrtimer: Fix softirq base type check in update_needs_ipi()
The 'clockid' field does not hold a value of 'enum hrtimer_base_type'
but a clockid_t. Instead of testing that the base is a softirq clock
base, the test checks that the clockid is one of CLOCK_REALTIME,
CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID.
Fix the check to correctly compare the base type instead of the clockid.
Fixes: 1e7f7fbcd40c ("hrtimer: Avoid more SMP function calls in clock_was_set()")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
1 file changed