lkml.org 
[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 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/

    \
     
     \ /
      Last update: 2005-03-22 12:45    [W:2.446 / U:0.344 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site