···1515 const char *str[] = { "cold", "warm", "shutdown", "platform" };1616 int efi_mode, cap_reset_mode;17171818- if (!efi_enabled(EFI_RUNTIME_SERVICES))1818+ if (!efi_rt_services_supported(EFI_RT_SUPPORTED_RESET_SYSTEM))1919 return;20202121 switch (reboot_mode) {···64646565static int __init efi_shutdown_init(void)6666{6767- if (!efi_enabled(EFI_RUNTIME_SERVICES))6767+ if (!efi_rt_services_supported(EFI_RT_SUPPORTED_RESET_SYSTEM))6868 return -ENODEV;69697070 if (efi_poweroff_required()) {