Re: [patch] Real-Time Preemption, -VP-2.6.9-rc4-mm1-U3

From: Ingo Molnar
Date: Sat Oct 16 2004 - 01:49:03 EST



* Bill Huey <bhuey@xxxxxxxx> wrote:

> On Fri, Oct 15, 2004 at 12:26:33PM +0200, Ingo Molnar wrote:
> >
> > i have released the -U3 PREEMPT_REALTIME patch:
> >
> > http://redhat.com/~mingo/voluntary-preempt/voluntary-preempt-2.6.9-rc4-mm1-U3
>
> Atomic violations:

ok, the rtc clock needs to go back to raw for the time being - the patch
below should fix it.

Ingo

--- linux.old/arch/i386/kernel/time.c
+++ linux.new/arch/i386/kernel/time.c
@@ -81,7 +81,7 @@ unsigned long cpu_khz; /* Detected as we

extern unsigned long wall_jiffies;

-DECLARE_SPINLOCK(rtc_lock);
+DECLARE_RAW_SPINLOCK(rtc_lock);

#include <asm/i8253.h>

--- linux.old/include/linux/mc146818rtc.h
+++ linux.new/include/linux/mc146818rtc.h
@@ -16,7 +16,7 @@
#include <linux/spinlock.h> /* spinlock_t */
#include <asm/mc146818rtc.h> /* register access macros */

-extern spinlock_t rtc_lock; /* serialize CMOS RAM access */
+extern raw_spinlock_t rtc_lock; /* serialize CMOS RAM access */

/**********************************************************************
* register summary
-
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/