summaryrefslogtreecommitdiff
path: root/src/kernel/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-02-06 22:47:23 +1100
committerKeith Packard <keithp@keithp.com>2016-02-07 15:42:27 -0800
commit36c6d74048283d27c890054814eee2cb39b7cbb7 (patch)
tree4d43bf203e1744989b19fcc52e4025f4ba8817cd /src/kernel/ao.h
parentfbb07cf50ba7fa278d1f8201ef376ec12480e9aa (diff)
altos: Add power management APIs
This provides sequenced suspend/resume functionality, allowing modules to register for power management at configuration time. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao.h')
-rw-r--r--src/kernel/ao.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h
index 59a469ae..a794ba71 100644
--- a/src/kernel/ao.h
+++ b/src/kernel/ao.h
@@ -124,6 +124,16 @@ ao_timer_init(void);
void
ao_clock_init(void);
+#if AO_POWER_MANAGEMENT
+/* Go to low power clock */
+void
+ao_clock_suspend(void);
+
+/* Restart full-speed clock */
+void
+ao_clock_resume(void);
+#endif
+
/*
* ao_mutex.c
*/