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 /core/test | |
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 'core/test')
-rw-r--r-- | core/test/run-timer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/test/run-timer.c b/core/test/run-timer.c index 13b175e..e1a7cef 100644 --- a/core/test/run-timer.c +++ b/core/test/run-timer.c @@ -39,6 +39,12 @@ static void expiry(struct timer *t, void *data, uint64_t now) count--; } +void slw_update_timer_expiry(uint64_t new_target) +{ + (void)new_target; + /* FIXME: do intersting SLW timer sim */ +} + int main(void) { unsigned int i; |