X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Ftimer.h;fp=include%2Flinux%2Ftimer.h;h=9b9877fd25059e1ad919d9ba87924d6374b26716;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=c982304dbafd4f30faf9764c377b442894f20282;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/linux/timer.h b/include/linux/timer.h index c982304db..9b9877fd2 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -1,11 +1,12 @@ #ifndef _LINUX_TIMER_H #define _LINUX_TIMER_H +#include #include #include #include -struct tvec_t_base_s; +struct timer_base_s; struct timer_list { struct list_head entry; @@ -14,16 +15,16 @@ struct timer_list { void (*function)(unsigned long); unsigned long data; - struct tvec_t_base_s *base; + struct timer_base_s *base; }; -extern struct tvec_t_base_s boot_tvec_bases; +extern struct timer_base_s __init_timer_base; #define TIMER_INITIALIZER(_function, _expires, _data) { \ .function = (_function), \ .expires = (_expires), \ .data = (_data), \ - .base = &boot_tvec_bases, \ + .base = &__init_timer_base, \ } #define DEFINE_TIMER(_name, _function, _expires, _data) \ @@ -68,13 +69,13 @@ extern unsigned long next_timer_interrupt(void); * @timer: the timer to be added * * The kernel will do a ->function(->data) callback from the - * timer interrupt at the ->expires point in the future. The + * timer interrupt at the ->expired point in the future. The * current time is 'jiffies'. * - * The timer's ->expires, ->function (and if the handler uses it, ->data) + * The timer's ->expired, ->function (and if the handler uses it, ->data) * fields must be set prior calling this function. * - * Timers with an ->expires field in the past will be executed in the next + * Timers with an ->expired field in the past will be executed in the next * timer tick. */ static inline void add_timer(struct timer_list *timer) @@ -95,7 +96,6 @@ static inline void add_timer(struct timer_list *timer) extern void init_timers(void); extern void run_local_timers(void); -struct hrtimer; -extern int it_real_fn(struct hrtimer *); +extern int it_real_fn(void *); #endif