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>
This commit is contained in:
Ralf Baechle
2007-11-02 17:26:06 +00:00
committed by Linus Torvalds
parent a89b7717a8
commit 74521c28e5
3 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
#include <asm/io.h>
#include <asm/time.h>
static DEFINE_SPINLOCK(i8253_lock);
DEFINE_SPINLOCK(i8253_lock);
/*
* Initialize the PIT timer.