diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-23 14:16:40 -0400 |
commit | 44bc40e1489622234169786b0ad5a1f4a01e1090 (patch) | |
tree | cd247a6f130b8993e92ac62f76ced2b023491d09 /drivers/tty | |
parent | 02171b4a7c5b555d08c3321332e0c45776518276 (diff) | |
parent | ead91d4b8c3b1fb08a73aaa4a191230ecf717ee0 (diff) |
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform changes from Ingo Molnar:
"This tree includes assorted platform driver updates and a preparatory
series for a platform with custom DMA remapping semantics (sta2x11 I/O
hub)."
* 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/vsmp: Fix number of CPUs when vsmp is disabled
keyboard: Use BIOS Keyboard variable to set Numlock
x86/olpc/xo1/sci: Report RTC wakeup events
x86/olpc/xo1/sci: Produce wakeup events for buttons and switches
x86, platform: Initial support for sta2x11 I/O hub
x86: Introduce CONFIG_X86_DMA_REMAP
x86-32: Introduce CONFIG_X86_DEV_DMA_OPS
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/vt/keyboard.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 3b0c4e32ed7..48cc6f25cfd 100644 --- a/drivers/tty/vt/keyboard.c +++ b/drivers/tty/vt/keyboard.c | |||
@@ -53,17 +53,13 @@ extern void ctrl_alt_del(void); | |||
53 | 53 | ||
54 | #define KBD_DEFMODE ((1 << VC_REPEAT) | (1 << VC_META)) | 54 | #define KBD_DEFMODE ((1 << VC_REPEAT) | (1 << VC_META)) |
55 | 55 | ||
56 | /* | 56 | #if defined(CONFIG_X86) || defined(CONFIG_PARISC) |
57 | * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on. | 57 | #include <asm/kbdleds.h> |
58 | * This seems a good reason to start with NumLock off. On HIL keyboards | ||
59 | * of PARISC machines however there is no NumLock key and everyone expects the | ||
60 | * keypad to be used for numbers. | ||
61 | */ | ||
62 | |||
63 | #if defined(CONFIG_PARISC) && (defined(CONFIG_KEYBOARD_HIL) || defined(CONFIG_KEYBOARD_HIL_OLD)) | ||
64 | #define KBD_DEFLEDS (1 << VC_NUMLOCK) | ||
65 | #else | 58 | #else |
66 | #define KBD_DEFLEDS 0 | 59 | static inline int kbd_defleds(void) |
60 | { | ||
61 | return 0; | ||
62 | } | ||
67 | #endif | 63 | #endif |
68 | 64 | ||
69 | #define KBD_DEFLOCK 0 | 65 | #define KBD_DEFLOCK 0 |
@@ -1524,8 +1520,8 @@ int __init kbd_init(void) | |||
1524 | int error; | 1520 | int error; |
1525 | 1521 | ||
1526 | for (i = 0; i < MAX_NR_CONSOLES; i++) { | 1522 | for (i = 0; i < MAX_NR_CONSOLES; i++) { |
1527 | kbd_table[i].ledflagstate = KBD_DEFLEDS; | 1523 | kbd_table[i].ledflagstate = kbd_defleds(); |
1528 | kbd_table[i].default_ledflagstate = KBD_DEFLEDS; | 1524 | kbd_table[i].default_ledflagstate = kbd_defleds(); |
1529 | kbd_table[i].ledmode = LED_SHOW_FLAGS; | 1525 | kbd_table[i].ledmode = LED_SHOW_FLAGS; |
1530 | kbd_table[i].lockstate = KBD_DEFLOCK; | 1526 | kbd_table[i].lockstate = KBD_DEFLOCK; |
1531 | kbd_table[i].slockstate = 0; | 1527 | kbd_table[i].slockstate = 0; |