summaryrefslogtreecommitdiff
path: root/include/hwtimer.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-18 13:03:38 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-19 08:39:41 -0700
commit70f3fcaf8648230a5cd27a9da151494d6df3016f (patch)
treec67e9ff911914f7eaef7af6c9e95874cf8d0cce2 /include/hwtimer.h
parent6ecbb86b6392fa0b11514903a9fb3d3a3b704391 (diff)
downloadchrome-ec-70f3fcaf8648230a5cd27a9da151494d6df3016f.tar.gz
Add hooks module so modules can be notified of system-level events.
This will be used for sleep/wake/sysjump/etc. For now it's just wired up to clock frequency changing. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=manual: use nopll command, should still work Change-Id: Iedcea5830bc18eacfd955c29b8f793aba8905dd8
Diffstat (limited to 'include/hwtimer.h')
-rw-r--r--include/hwtimer.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/hwtimer.h b/include/hwtimer.h
index 5fee466b7c..ae0c634163 100644
--- a/include/hwtimer.h
+++ b/include/hwtimer.h
@@ -5,8 +5,8 @@
/* Hardware timer driver API */
-#ifndef __EC_HWTIMER_H
-#define __EC_HWTIMER_H
+#ifndef __CROS_EC_HWTIMER_H
+#define __CROS_EC_HWTIMER_H
/**
* Programs when the next timer should fire an interrupt.
@@ -30,9 +30,6 @@ uint32_t __hw_clock_source_read(void);
*/
int __hw_clock_source_init(void);
-/* Notifies the module the system clock frequency has changed to <freq>. */
-void hwtimer_clock_changed(int freq);
-
/**
* Searches the next deadline and program it in the timer hardware.
*
@@ -43,4 +40,4 @@ void hwtimer_clock_changed(int freq);
*/
void process_timers(int overflow);
-#endif /* __EC_HWTIMER_H */
+#endif /* __CROS_EC_HWTIMER_H */