diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-11-02 13:26:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-02 22:39:18 -0400 |
commit | 74521c28e550c4ec265cda14114bd9b908e9de34 (patch) | |
tree | 6e9ab675eb69329db5188783a11a76a826055531 /include | |
parent | a89b7717a8c9be41a4856134b60a4d7a66df13f6 (diff) |
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 <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/i8253.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-mips/i8253.h b/include/asm-mips/i8253.h index 778b2f023905..032ca73f181b 100644 --- a/include/asm-mips/i8253.h +++ b/include/asm-mips/i8253.h | |||
@@ -5,11 +5,15 @@ | |||
5 | #ifndef __ASM_I8253_H | 5 | #ifndef __ASM_I8253_H |
6 | #define __ASM_I8253_H | 6 | #define __ASM_I8253_H |
7 | 7 | ||
8 | #include <linux/spinlock.h> | ||
9 | |||
8 | /* i8253A PIT registers */ | 10 | /* i8253A PIT registers */ |
9 | #define PIT_MODE 0x43 | 11 | #define PIT_MODE 0x43 |
10 | #define PIT_CH0 0x40 | 12 | #define PIT_CH0 0x40 |
11 | #define PIT_CH2 0x42 | 13 | #define PIT_CH2 0x42 |
12 | 14 | ||
15 | extern spinlock_t i8253_lock; | ||
16 | |||
13 | extern void setup_pit_timer(void); | 17 | extern void setup_pit_timer(void); |
14 | 18 | ||
15 | #endif /* __ASM_I8253_H */ | 19 | #endif /* __ASM_I8253_H */ |