efi: Use EFI ResetSystem only when available
authorArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2020 12:12:14 +0000 (13:12 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commit9b42f76ad58b3f641197d031766c6979acf4b4a6
tree8c0373b66c6de4d03d4794243d7f08be23bc30df
parent69f4cab134d204f0260d69ae407a2562e56a5025
efi: Use EFI ResetSystem only when available

Do not attempt to call EFI ResetSystem if the runtime supported mask tells
us it is no longer functional at OS runtime.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/reboot.c