aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorMiao Wang <[email protected]>2024-08-07 17:37:11 +0800
committerHuacai Chen <[email protected]>2024-08-07 17:37:11 +0800
commite688c220732e518c2eb1639e9ef77d4a9311713c (patch)
tree0957d55ce95047ed503715a507dde45a5ab4fbfd /tools/testing/selftests/bpf/progs/test_autoload.c
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff)
LoongArch: Enable general EFI poweroff method
efi_shutdown_init() can register a general sys_off handler named efi_power_off(). Enable this by providing efi_poweroff_required(), like arm and x86. Since EFI poweroff is also supported on LoongArch, and the enablement makes the poweroff function usable for hardwares which lack ACPI S5. We prefer ACPI poweroff rather than EFI poweroff (like x86), so we only require EFI poweroff if acpi_gbl_reduced_hardware or acpi_no_s5 is true. Cc: [email protected] Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Miao Wang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions