diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-08 00:53:00 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-08 00:53:00 +0000 |
commit | b8553086288629b4efb77e97f5582e08bc50ad65 (patch) | |
tree | 0a19bd1c21e148f35c7a0f76baa4f7a056b966b0 /kernel/timer.c | |
parent | 75b6d92f2dd5112b02f4e78cf9f35f9825946ef0 (diff) |
Merge with 2.4.0-test3-pre4.
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 873fef479..1a0c2ba73 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -162,7 +162,7 @@ static inline void internal_add_timer(struct timer_list *timer) /* Initialize both explicitly - let's try to have them in the same cache line */ spinlock_t timerlist_lock = SPIN_LOCK_UNLOCKED; -volatile unsigned long timer_sequence = 0xfee1bad; +volatile struct timer_list *running_timer = NULL; void add_timer(struct timer_list *timer) { @@ -311,25 +311,6 @@ repeat: spin_unlock_irq(&timerlist_lock); } - -static inline void run_old_timers(void) -{ - struct timer_struct *tp; - unsigned long mask; - - for (mask = 1, tp = timer_table+0 ; mask ; tp++,mask += mask) { - if (mask > timer_active) - break; - if (!(mask & timer_active)) - continue; - if (time_after(tp->expires, jiffies)) - continue; - timer_active &= ~mask; - tp->fn(); - sti(); - } -} - spinlock_t tqueue_lock = SPIN_LOCK_UNLOCKED; void tqueue_bh(void) @@ -342,9 +323,6 @@ void immediate_bh(void) run_task_queue(&tq_immediate); } -unsigned long timer_active; -struct timer_struct timer_table[32]; - /* * this routine handles the overflow of the microsecond field * @@ -682,7 +660,6 @@ static inline void update_times(void) void timer_bh(void) { update_times(); - run_old_timers(); run_timer_list(); } |