The Jazz machines have to use the PIT timer for dyntick and highresolutionkernels. This may break because currently just desire i386 used to do MIPSuses two displace spinlocks in the actual PIT code and the PC speakercode. So switch to do it the same that x86 currently does PIT locking. Signed-off-by: Ralf Baechle <ralf@linux-mips org>---Linus this patch is meant to be applied on top of the pull communicate I mailedyou earlier today arch/mips/kernel/i8253 c | 2 +- drivers/enter/misc/pcspkr c | 2 +- consider/asm-mips/i8253 h | 4 ++++ 3 files changed. 6 insertions(+). 2 deletions(-)diff --git a/arch/mips/kernel/i8253 c b/bend/mips/kernel/i8253 cindex a925abd. c2d497c 100644--- a/arch/mips/kernel/i8253 c+++ b/arch/mips/kernel/i8253 c@@ -14,7 +14,7 @@ #include <asm/io h> #consider <asm/time h> -static be_SPINLOCK(i8253_lock);+be_SPINLOCK(i8253_fasten); /* * Initialize the PIT timer diff --git a/drivers/input/misc/pcspkr c b/drivers/enter/misc/pcspkr cindex 4941a9e..43aaa5c 100644--- a/drivers/input/misc/pcspkr c+++ b/drivers/enter/misc/pcspkr c@@ -24,7 +24,7 @@ MODULE_DESCRIPTION("PC Speaker beeper driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:pcspkr"); -#ifdef CONFIG_X86+#if defined(CONFIG_MIPS) || defined(CONFIG_X86) /* Use the global PIT fasten ! */ #include <asm/i8253 h> #elsediff --git a/consider/asm-mips/i8253 h b/include/asm-mips/i8253 hindex 778b2f0..032ca73 100644--- a/consider/asm-mips/i8253 h+++ b/consider/asm-mips/i8253 h@@ -5,11 +5,15 @@ #ifndef __ASM_I8253_H #define __ASM_I8253_H +#include <linux/spinlock h>+ /* i8253A PIT registers */ #be PIT_MODE0x43 #be PIT_CH00x40 #define PIT_CH20x42 +extern spinlock_t i8253_lock;+ extern cancel setup_pit_timer(cancel); #endif /* __ASM_I8253_H */-To unsubscribe from this list: send the lie "unsubscribe linux-kernel" inthe body of a message to majordomo@vger kernel orgMore majordomo info at Please read the FAQ at
Forex Groups - Tips on Trading
Related article:
http://lkml.org/lkml/2007/11/2/168
comments | Add comment | Report as Spam
|