efi/reboot: Add generic wrapper around EfiResetSystem()
authorMatt Fleming <matt.fleming@intel.com>
Fri, 13 Jun 2014 11:22:22 +0000 (12:22 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 18 Jul 2014 20:23:51 +0000 (21:23 +0100)
commit8562c99cdd30217dea3609e268572f8764f401a5
tree4a494dab6d089e0030255d2c5f6521b35321b97f
parentf4f75ad5741fe0331bbe1f5c42b906cda299f26b
efi/reboot: Add generic wrapper around EfiResetSystem()

Implement efi_reboot(), which is really just a wrapper around the
EfiResetSystem() EFI runtime service, but it does at least allow us to
funnel all callers through a single location.

It also simplifies the callsites since users no longer need to check to
see whether EFI_RUNTIME_SERVICES are enabled.

Cc: Tony Luck <tony.luck@intel.com>
Tested-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/ia64/kernel/process.c
arch/x86/kernel/reboot.c
drivers/firmware/efi/Makefile
drivers/firmware/efi/reboot.c [new file with mode: 0644]
include/linux/efi.h