diff options
author | Benjamin Herrenschmidt <benh@au1.ibm.com> | 2015-09-10 10:09:26 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-11 16:42:17 +1000 |
commit | 9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7 (patch) | |
tree | 5be21b54d2b9d301b9983cf18554c1386cdce00d /include | |
parent | b5f05ac337b3495cf506f5492fd053e90ae0bda3 (diff) | |
download | skiboot-9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7.zip skiboot-9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7.tar.gz skiboot-9af5751a00faf9ad3fe4b52f56de9bd7835d9bb7.tar.bz2 |
slw/timer: SBE based timer support
Recent HostBoot & SBE firmware provide a HW timer facility that can
be used to implement OPAL timers and thus limit the reliance on the
Linux heartbeat.
This implements support for it. The side effect is that i2c from Centaurs
is now usable.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[stewart@linux.vnet.ibm.com: fix run-timer unit test]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/skiboot.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index 8788add..4b58597 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -253,6 +253,12 @@ extern void *create_dtb(const struct dt_node *root); /* SLW reinit function for switching core settings */ extern int64_t slw_reinit(uint64_t flags); +/* SLW update timer function */ +extern void slw_update_timer_expiry(uint64_t new_target); + +/* Is SLW timer available ? */ +extern bool slw_timer_ok(void); + /* Fallback fake RTC */ extern void fake_rtc_init(void); |