]> err.no Git - linux-2.6/blobdiff - kernel/timer.c
slab: shut down cache_reaper when cpu goes down
[linux-2.6] / kernel / timer.c
index ba41af2bb6cc27d16d9526e181d225bf5398151c..7a6448340f9032d798cb470c0d028a5f13aaaa68 100644 (file)
@@ -629,7 +629,7 @@ static inline void __run_timers(tvec_base_t *base)
                        void (*fn)(unsigned long);
                        unsigned long data;
 
-                       timer = list_entry(head->next,struct timer_list,entry);
+                       timer = list_first_entry(head, struct timer_list,entry);
                        fn = timer->function;
                        data = timer->data;
 
@@ -1248,7 +1248,7 @@ static void migrate_timer_list(tvec_base_t *new_base, struct list_head *head)
        struct timer_list *timer;
 
        while (!list_empty(head)) {
-               timer = list_entry(head->next, struct timer_list, entry);
+               timer = list_first_entry(head, struct timer_list, entry);
                detach_timer(timer, 0);
                timer_set_base(timer, new_base);
                internal_add_timer(new_base, timer);