aboutsummaryrefslogtreecommitdiff
path: root/include/timer.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-09-10 10:08:56 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-11 16:32:37 +1000
commitb5f05ac337b3495cf506f5492fd053e90ae0bda3 (patch)
tree13430c290a130c3f777736abec56173f987416b2 /include/timer.h
parentebf9084d8a4d2f70e4e7d2c6a35cac2c7f6e2681 (diff)
downloadskiboot-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 'include/timer.h')
-rw-r--r--include/timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/timer.h b/include/timer.h
index a1132e0..116b9ac 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -6,7 +6,7 @@
struct timer;
-typedef void (*timer_func_t)(struct timer *t, void *data);
+typedef void (*timer_func_t)(struct timer *t, void *data, uint64_t now);
/* Structure exposed in order to be able to allocate it
* statically but otherwise, use accessors, don't access