spin_lock in check_monotonic_clock must be raw
PATCH 1/1 spin_lock in check_monotonic_clock must be raw
Hi Ingo,
The lock in check_monotonic_clock must be a raw spinlock since it is called from the hrtimer_interrupt.
-- Steve
Signed-off-by Steven Rostedt <[email protected]>
kernel/time/timeofday.c +1 -1
@@ -125,7 +125,7 @@#ifdef CONFIG_PARANOID_GENERIC_TIME /* This will hurt performance! */ -static DEFINE_SPINLOCK (check_monotonic_lock); +static DEFINE_RAW_SPINLOCK (check_monotonic_lock);static ktime_t last_monotonic_ktime;static ktime_t get_check_value (void )
Ingo Molnar
AppliedQuoted 4 lines · Steven Rostedt
Hi Ingo,
The lock in
check_monotonic_clockmust be a raw spinlock since it is called from thehrtimer_interrupt.
thanks, applied.
Ingo