Re: [PATCH] Use i8253.c lock for PC speaker on MIPS, too.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ralf Baechle <ralf@...>
Cc: Andrew Morton <akpm@...>, Thomas Bogendoerfer <tsbogend@...>, Linux Kernel Mailing List <linux-kernel@...>, Jay Estabrook <jay.estabrook@...>, Ivan Kokshaysky <ink@...>, Paul Mackerras <paulus@...>
Date: Friday, November 2, 2007 - 10:46 pm

On Fri, 2 Nov 2007, Ralf Baechle wrote:

Hmm. That leaves apparently just alpha/ppc/powerpc as supporting pcspkr, 
and *not* doing this. Maybe they should be forced to do the i8253 lock in 
arch code too, and expose it through <asm/i8253.h>, instead of having that 
butt-ugly #ifdef remain in the sources?

Paul, Jay, Ivan: right now drivers/input/pcspkr.c does this:

	#if defined(CONFIG_MIPS) || defined(CONFIG_X86)
	/* Use the global PIT lock ! */
	#include <asm/i8253.h>
	#else
	#include <asm/8253pit.h>
	static DEFINE_SPINLOCK(i8253_lock);
	#endif

and wouldn't it be nice if we just changed it to

	#include <asm/i8253.h>

and got rid of one totally unnecessary stupid arch difference?

		Linus
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Use i8253.c lock for PC speaker on MIPS, too., Ralf Baechle, (Fri Nov 2, 1:26 pm)
Re: [PATCH] Use i8253.c lock for PC speaker on MIPS, too., Linus Torvalds, (Fri Nov 2, 10:46 pm)
Re: [PATCH] Use i8253.c lock for PC speaker on MIPS, too., Paul Mackerras, (Fri Nov 2, 11:39 pm)