summaryrefslogtreecommitdiff
path: root/include/linux/timer.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-29 23:23:44 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-10-29 23:23:44 -0800
commit22331dad4687ac6f91428884e2b9a02cb4d8a6df (patch)
tree4d3daf142b1414c8946e18ec498f84b234255a6a /include/linux/timer.h
parent706489d8a6f1187875ebdb86a751b6d77d1911e4 (diff)
[PATCH] slab: add_timer_on: add a timer on a particular CPU
add_timer_on is like add_timer, except it takes a target CPU on which to add the timer. The slab code needs per-cpu timers for shrinking the per-cpu caches.
Diffstat (limited to 'include/linux/timer.h')
-rw-r--r--include/linux/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/timer.h b/include/linux/timer.h
index cfedb5e8bb07..d8ed753c8caa 100644
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -44,6 +44,7 @@ static inline int timer_pending(const struct timer_list * timer)
}
extern void add_timer(struct timer_list * timer);
+extern void add_timer_on(struct timer_list *timer, int cpu);
extern int del_timer(struct timer_list * timer);
extern int mod_timer(struct timer_list *timer, unsigned long expires);