lkml.org 
[lkml]   [2006]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH -rt] spin_lock in check_monotonic_clock must be raw
From
Date
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@goodmis.org>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-30 16:30    [W:0.047 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site