All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH -rt] spin_lock in check_monotonic_clock must be raw
Date: Thu, 30 Mar 2006 09:28:04 -0500	[thread overview]
Message-ID: <1143728884.26540.31.camel@localhost.localdomain> (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 <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)



             reply	other threads:[~2006-03-30 14:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 14:28 Steven Rostedt [this message]
2006-03-31 10:31 ` [PATCH -rt] spin_lock in check_monotonic_clock must be raw Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1143728884.26540.31.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.