Re: PATCH 2.4.0.10.3: pc_keyb and q40_keyb cleanup

From: Andrea Arcangeli (andrea@suse.de)
Date: Mon Oct 16 2000 - 20:56:53 EST


On Mon, Oct 16, 2000 at 09:31:42PM -0400, Jeff Garzik wrote:
> I understand SA_INTERRUPT, my question in the previous e-mail was more
> basic: keyboard_interrupt calls handle_kbd_event with local interrupts
> disabled. [..]

Woops sorry, I misunderstood your question.

>[..] Why are local interrupts disabled?

To avoid to deadlock on the kbd_controller_lock in SMP or to race in UP.
 
Both irq handler and normal kernel context (open/close) will play with the keyb
controller at around address 0x6x and accesses are serialized via the
kbd_controller_lock.

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:10 EST