mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
4d022e35fd
reboot_{32|64}.c unification patch. This patch unifies the code from the reboot_32.c and reboot_64.c files. It has been tested in computers with X86_32 and X86_64 kernels and it looks like all reboot modes work fine (EFI restart system hasn't been tested yet). Probably I made some mistakes (like I usually do) so I hope we can identify and fix them soon. Signed-off-by: Miguel Boton <mboton@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
19 lines
329 B
C
19 lines
329 B
C
#ifndef _ASM_EMERGENCY_RESTART_H
|
|
#define _ASM_EMERGENCY_RESTART_H
|
|
|
|
enum reboot_type {
|
|
BOOT_TRIPLE = 't',
|
|
BOOT_KBD = 'k',
|
|
#ifdef CONFIG_X86_32
|
|
BOOT_BIOS = 'b',
|
|
#endif
|
|
BOOT_ACPI = 'a',
|
|
BOOT_EFI = 'e'
|
|
};
|
|
|
|
extern enum reboot_type reboot_type;
|
|
|
|
extern void machine_emergency_restart(void);
|
|
|
|
#endif /* _ASM_EMERGENCY_RESTART_H */
|