Messages in this thread |  | | Date | Tue, 17 Oct 2000 03:56:53 +0200 | From | Andrea Arcangeli <> | Subject | Re: PATCH 2.4.0.10.3: pc_keyb and q40_keyb cleanup |
| |
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/
|  |