patch-2.4.0-test10 linux/drivers/char/q40_keyb.c
Next file: linux/drivers/char/qpmouse.c
Previous file: linux/drivers/char/ppdev.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Oct 23 15:51:36 2000
- Orig file:
v2.4.0-test9/linux/drivers/char/q40_keyb.c
- Orig date:
Wed Sep 8 11:51:22 1999
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/char/q40_keyb.c linux/drivers/char/q40_keyb.c
@@ -94,7 +94,7 @@
};
-spinlock_t kbd_controller_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t kbd_controller_lock = SPIN_LOCK_UNLOCKED;
/*
@@ -340,11 +340,10 @@
static void keyboard_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
- unsigned long flags;
unsigned char status;
disable_keyboard();
- spin_lock_irqsave(&kbd_controller_lock, flags);
+ spin_lock(&kbd_controller_lock);
kbd_pt_regs = regs;
status = IRQ_KEYB_MASK & master_inb(INTERRUPT_REG);
@@ -386,7 +385,7 @@
keyup=1;
}
exit:
- spin_unlock_irqrestore(&kbd_controller_lock, flags);
+ spin_unlock(&kbd_controller_lock);
master_outb(-1,KEYBOARD_UNLOCK_REG); /* keyb ints reenabled herewith */
enable_keyboard();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)