aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/timer.c')
-rw-r--r--kernel/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index 9e49deed468c..3bf0e9ed2dbe 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -419,10 +419,10 @@ static inline void __run_timers(tvec_base_t *base)
419 419
420 spin_lock_irq(&base->lock); 420 spin_lock_irq(&base->lock);
421 while (time_after_eq(jiffies, base->timer_jiffies)) { 421 while (time_after_eq(jiffies, base->timer_jiffies)) {
422 struct list_head work_list = LIST_HEAD_INIT(work_list); 422 struct list_head work_list;
423 struct list_head *head = &work_list; 423 struct list_head *head = &work_list;
424 int index = base->timer_jiffies & TVR_MASK; 424 int index = base->timer_jiffies & TVR_MASK;
425 425
426 /* 426 /*
427 * Cascade timers: 427 * Cascade timers:
428 */ 428 */
@@ -431,8 +431,8 @@ static inline void __run_timers(tvec_base_t *base)
431 (!cascade(base, &base->tv3, INDEX(1))) && 431 (!cascade(base, &base->tv3, INDEX(1))) &&
432 !cascade(base, &base->tv4, INDEX(2))) 432 !cascade(base, &base->tv4, INDEX(2)))
433 cascade(base, &base->tv5, INDEX(3)); 433 cascade(base, &base->tv5, INDEX(3));
434 ++base->timer_jiffies; 434 ++base->timer_jiffies;
435 list_splice_init(base->tv1.vec + index, &work_list); 435 list_replace_init(base->tv1.vec + index, &work_list);
436 while (!list_empty(head)) { 436 while (!list_empty(head)) {
437 void (*fn)(unsigned long); 437 void (*fn)(unsigned long);
438 unsigned long data; 438 unsigned long data;