do_timer.h 519 B

12345678910111213141516171819202122232425
  1. /* defines for inline arch setup functions */
  2. #include <asm/voyager.h>
  3. static inline void do_timer_interrupt_hook(void)
  4. {
  5. do_timer(1);
  6. #ifndef CONFIG_SMP
  7. update_process_times(user_mode_vm(irq_regs));
  8. #endif
  9. voyager_timer_interrupt();
  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. return count;
  21. }