diff options
author | sam <sam@FreeBSD.org> | 2008-08-02 17:42:38 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-08-02 17:42:38 +0000 |
commit | f28149353a8d84e6d26ce1feac18f3225125ceaf (patch) | |
tree | 48979d511003bfcad58592aad5b0356bc70e5cb0 /sys/sys/callout.h | |
parent | dd6ada0389c465aff31058de6e40459dc9fc559b (diff) | |
download | FreeBSD-src-f28149353a8d84e6d26ce1feac18f3225125ceaf.zip FreeBSD-src-f28149353a8d84e6d26ce1feac18f3225125ceaf.tar.gz |
add callout_schedule; besides being useful it also improves
compatibility with other systems
Reviewed by: ed, battlez
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r-- | sys/sys/callout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h index f472839..2d43d14 100644 --- a/sys/sys/callout.h +++ b/sys/sys/callout.h @@ -89,6 +89,10 @@ int callout_reset_on(struct callout *, int, void (*)(void *), void *, int); callout_reset_on((c), (on_tick), (fn), (arg), (c)->c_cpu) #define callout_reset_curcpu(c, on_tick, fn, arg) \ callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid)) +int callout_schedule(struct callout *, int); +int callout_schedule_on(struct callout *, int, int); +#define callout_schedule_curcpu(c, on_tick) \ + callout_schedule_on((c), (on_tick), PCPU_GET(cpuid)) #define callout_stop(c) _callout_stop_safe(c, 0) int _callout_stop_safe(struct callout *, int); void callout_tick(void); |