]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/asm-i386/mach-voyager/do_timer.h
[PATCH] clockevents: i386 drivers
[karo-tx-linux.git] / include / asm-i386 / mach-voyager / do_timer.h
index 04e69c104a74616fa18b3e926a31682a520b9cf2..60f9dcc15d5427c64ca4a0edd7d4a3adab6ddee8 100644 (file)
@@ -1,25 +1,18 @@
 /* defines for inline arch setup functions */
+#include <linux/clockchips.h>
+
 #include <asm/voyager.h>
+#include <asm/i8253.h>
 
+/**
+ * do_timer_interrupt_hook - hook into timer tick
+ * @regs:     standard registers from interrupt
+ *
+ * Call the pit clock event handler. see asm/i8253.h
+ **/
 static inline void do_timer_interrupt_hook(void)
 {
-       do_timer(1);
-#ifndef CONFIG_SMP
-       update_process_times(user_mode_vm(irq_regs));
-#endif
-
+       pit_interrupt_hook();
        voyager_timer_interrupt();
 }
 
-static inline int do_timer_overflow(int count)
-{
-       /* can't read the ISR, just assume 1 tick
-          overflow */
-       if(count > LATCH || count < 0) {
-               printk(KERN_ERR "VOYAGER PROBLEM: count is %d, latch is %d\n", count, LATCH);
-               count = LATCH;
-       }
-       count -= LATCH;
-
-       return count;
-}