File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 28
28
#include <linux/reboot.h>
29
29
#include <linux/memory.h>
30
30
#include <linux/acpi.h>
31
+ #include <linux/efi.h>
31
32
32
33
#include <asm/uv/uv_mmrs.h>
33
34
#include <asm/uv/uv_hub.h>
@@ -1510,6 +1511,14 @@ static void __init build_socket_tables(void)
1510
1511
}
1511
1512
}
1512
1513
1514
+ /* Check which reboot to use */
1515
+ static void check_efi_reboot (void )
1516
+ {
1517
+ /* If EFI reboot not available, use ACPI reboot */
1518
+ if (!efi_enabled (EFI_BOOT ))
1519
+ reboot_type = BOOT_ACPI ;
1520
+ }
1521
+
1513
1522
/* Setup user proc fs files */
1514
1523
static int proc_hubbed_show (struct seq_file * file , void * data )
1515
1524
{
@@ -1594,6 +1603,8 @@ static __init int uv_system_init_hubless(void)
1594
1603
if (rc >= 0 )
1595
1604
uv_setup_proc_files (1 );
1596
1605
1606
+ check_efi_reboot ();
1607
+
1597
1608
return rc ;
1598
1609
}
1599
1610
@@ -1727,12 +1738,7 @@ static void __init uv_system_init_hub(void)
1727
1738
/* Register Legacy VGA I/O redirection handler: */
1728
1739
pci_register_set_vga_state (uv_set_vga_state );
1729
1740
1730
- /*
1731
- * For a kdump kernel the reset must be BOOT_ACPI, not BOOT_EFI, as
1732
- * EFI is not enabled in the kdump kernel:
1733
- */
1734
- if (is_kdump_kernel ())
1735
- reboot_type = BOOT_ACPI ;
1741
+ check_efi_reboot ();
1736
1742
}
1737
1743
1738
1744
/*
You can’t perform that action at this time.
0 commit comments