ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-i386 / mach-voyager / do_timer.h
1 /* defines for inline arch setup functions */
2 #include <asm/voyager.h>
3
4 static inline void do_timer_interrupt_hook(struct pt_regs *regs)
5 {
6         do_timer(regs);
7
8         voyager_timer_interrupt(regs);
9 }
10
11 static inline int do_timer_overflow(int count)
12 {
13         /* can't read the ISR, just assume 1 tick
14            overflow */
15         if(count > LATCH || count < 0) {
16                 printk(KERN_ERR "VOYAGER PROBLEM: count is %d, latch is %d\n", count, LATCH);
17                 count = LATCH;
18         }
19         count -= LATCH;
20
21         return count;
22 }