summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-02-19 17:16:14 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-02-19 17:16:14 +0000
commitb7397618ce06c41adc25934314fbfddbaadbac1a (patch)
treec50fbb4a8cec8f5e562f80717b19b2f8169991c3 /sys/arch/arm64/include
parent0aee535ca6abf12f406bca310cd472153631518b (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.h4
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;