From 74521c28e550c4ec265cda14114bd9b908e9de34 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 2 Nov 2007 17:26:06 +0000 Subject: Use i8253.c lock for PC speaker on MIPS, too. The Jazz machines have to use the PIT timer for dyntick and highresolution kernels. This may break because currently just like i386 used to do MIPS uses two separate spinlocks in the actual PIT code and the PC speaker code. So switch to do it the same that x86 currently does PIT locking. Signed-off-by: Ralf Baechle Signed-off-by: Linus Torvalds --- include/asm-mips/i8253.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/asm-mips') diff --git a/include/asm-mips/i8253.h b/include/asm-mips/i8253.h index 778b2f02390..032ca73f181 100644 --- a/include/asm-mips/i8253.h +++ b/include/asm-mips/i8253.h @@ -5,11 +5,15 @@ #ifndef __ASM_I8253_H #define __ASM_I8253_H +#include + /* i8253A PIT registers */ #define PIT_MODE 0x43 #define PIT_CH0 0x40 #define PIT_CH2 0x42 +extern spinlock_t i8253_lock; + extern void setup_pit_timer(void); #endif /* __ASM_I8253_H */ -- cgit v1.2.3