Add support for deep(er) idle states that can be entered using PSCI. For
authorkettenis <kettenis@openbsd.org>
Sun, 19 Feb 2023 17:16:13 +0000 (17:16 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 19 Feb 2023 17:16:13 +0000 (17:16 +0000)
commit5f4ad52dea483bba412bd1d20e0dca1d6c3ab2d8
treecb75cca4b19d1c59013b05318a666feeab1a8c4f
parent9588f088ced0a9ad61632176a1bd9341133d7591
Add support for deep(er) idle states that can be entered using PSCI.  For
now this only supports states advertised in device trees, but ACPI support
could be added as well.  The parsing of the idle states as well as the
heuristic to pick the deepest one is probably a bit to simple, but more
complex cases can be added later.  Worst case cores will use WFI and use
more power in suspend.

ok phessler@
sys/arch/arm64/arm64/cpu.c
sys/arch/arm64/include/cpu.h
sys/dev/fdt/psci.c
sys/dev/fdt/pscivar.h