x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / x86 / include / asm / kbdleds.h
blobf27ac5ff597de23b20d8f50667787c0dd14f2739
1 #ifndef _ASM_X86_KBDLEDS_H
2 #define _ASM_X86_KBDLEDS_H
4 /*
5 * Some laptops take the 789uiojklm,. keys as number pad when NumLock is on.
6 * This seems a good reason to start with NumLock off. That's why on X86 we
7 * ask the bios for the correct state.
8 */
10 #include <asm/setup.h>
12 static inline int kbd_defleds(void)
14 return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0;
17 #endif /* _ASM_X86_KBDLEDS_H */