diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-02-19 17:16:14 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-02-19 17:16:14 +0000 |
commit | b7397618ce06c41adc25934314fbfddbaadbac1a (patch) | |
tree | c50fbb4a8cec8f5e562f80717b19b2f8169991c3 /sys/arch/arm64/include | |
parent | 0aee535ca6abf12f406bca310cd472153631518b (diff) |
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@
Diffstat (limited to 'sys/arch/arm64/include')
-rw-r--r-- | sys/arch/arm64/include/cpu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/cpu.h b/sys/arch/arm64/include/cpu.h index 3ab8a14e166..2ddaec58f66 100644 --- a/sys/arch/arm64/include/cpu.h +++ b/sys/arch/arm64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.34 2022/12/31 00:30:21 patrick Exp $ */ +/* $OpenBSD: cpu.h,v 1.35 2023/02/19 17:16:13 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com> * @@ -142,6 +142,8 @@ struct cpu_info { uint64_t ci_ttbr1; vaddr_t ci_el1_stkend; + uint32_t ci_psci_suspend_param; + struct opp_table *ci_opp_table; volatile int ci_opp_idx; volatile int ci_opp_max; |