diff options
author | Tom Rini <trini@konsulko.com> | 2018-06-14 13:28:03 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-06-14 13:28:03 -0400 |
commit | 9d0dc69235e8327dba5536761c768d40c4e514e5 (patch) | |
tree | 3530f43c7f2a1d1ed5480aee804b60d71cc6dd2d /arch/arm/cpu/armv8/fwcall.c | |
parent | 606fddd76c7a045c09d544357806b0b4de4845c7 (diff) | |
parent | 58bc69d20aaf2e32e93e977d708fe6a1af0ad6d1 (diff) |
Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot
Patch queue for efi - 2018-06-14
A few minor fixes for the release:
- Compile fixes
- HI20 relocations for RISC-V
- Fix bootefi without load path
- Fix Runtime Services with certain compilers
Diffstat (limited to 'arch/arm/cpu/armv8/fwcall.c')
-rw-r--r-- | arch/arm/cpu/armv8/fwcall.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/cpu/armv8/fwcall.c b/arch/arm/cpu/armv8/fwcall.c index c5aa41a0e6..0ba3dad8cc 100644 --- a/arch/arm/cpu/armv8/fwcall.c +++ b/arch/arm/cpu/armv8/fwcall.c @@ -143,15 +143,12 @@ void __efi_runtime EFIAPI efi_reset_system( efi_status_t reset_status, unsigned long data_size, void *reset_data) { - switch (reset_type) { - case EFI_RESET_COLD: - case EFI_RESET_WARM: - case EFI_RESET_PLATFORM_SPECIFIC: + if (reset_type == EFI_RESET_COLD || + reset_type == EFI_RESET_WARM || + reset_type == EFI_RESET_PLATFORM_SPECIFIC) { psci_system_reset(); - break; - case EFI_RESET_SHUTDOWN: + } else if (reset_type == EFI_RESET_SHUTDOWN) { psci_system_off(); - break; } while (1) { } |