efi/reboot: Add generic wrapper around EfiResetSystem()
[cascardo/linux.git] / arch / x86 / kernel / reboot.c
index 52b1157..09e709f 100644 (file)
@@ -528,11 +528,7 @@ static void native_machine_emergency_restart(void)
                        break;
 
                case BOOT_EFI:
-                       if (efi_enabled(EFI_RUNTIME_SERVICES))
-                               efi.reset_system(reboot_mode == REBOOT_WARM ?
-                                                EFI_RESET_WARM :
-                                                EFI_RESET_COLD,
-                                                EFI_SUCCESS, 0, NULL);
+                       efi_reboot(reboot_mode, NULL);
                        reboot_type = BOOT_BIOS;
                        break;