diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-09-10 10:08:56 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-11 16:32:37 +1000 |
commit | b5f05ac337b3495cf506f5492fd053e90ae0bda3 (patch) | |
tree | 13430c290a130c3f777736abec56173f987416b2 /hw/ipmi | |
parent | ebf9084d8a4d2f70e4e7d2c6a35cac2c7f6e2681 (diff) | |
download | skiboot-b5f05ac337b3495cf506f5492fd053e90ae0bda3.zip skiboot-b5f05ac337b3495cf506f5492fd053e90ae0bda3.tar.gz skiboot-b5f05ac337b3495cf506f5492fd053e90ae0bda3.tar.bz2 |
timer: Pass current timer to timer callbacks
The caller usually has it and it avoids additional mftb() which
can be expensive.
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 'hw/ipmi')
-rw-r--r-- | hw/ipmi/ipmi-watchdog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ipmi/ipmi-watchdog.c b/hw/ipmi/ipmi-watchdog.c index 7dfb0c0..55c3bf5 100644 --- a/hw/ipmi/ipmi-watchdog.c +++ b/hw/ipmi/ipmi-watchdog.c @@ -100,7 +100,8 @@ static void sync_reset_wdt(void) ipmi_queue_msg_sync(ipmi_msg); } -static void reset_wdt(struct timer *t __unused, void *data __unused) +static void reset_wdt(struct timer *t __unused, void *data __unused, + uint64_t now __unused) { struct ipmi_msg *ipmi_msg; |