[PATCH -rt] spin_lock in check_monotonic_clock must be raw
From: Steven Rostedt
Date: Thu Mar 30 2006 - 09:25:16 EST
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 <rostedt@xxxxxxxxxxx>
Index: linux-2.6.16-rt11/kernel/time/timeofday.c
===================================================================
--- linux-2.6.16-rt11.orig/kernel/time/timeofday.c 2006-03-30 07:10:16.000000000 -0500
+++ linux-2.6.16-rt11/kernel/time/timeofday.c 2006-03-30 09:23:07.000000000 -0500
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/