i8253.h 441 B

123456789101112131415161718192021
  1. #ifndef __ASM_I8253_H__
  2. #define __ASM_I8253_H__
  3. #include <linux/clockchips.h>
  4. extern spinlock_t i8253_lock;
  5. extern struct clock_event_device *global_clock_event;
  6. /**
  7. * pit_interrupt_hook - hook into timer tick
  8. * @regs: standard registers from interrupt
  9. *
  10. * Call the global clock event handler.
  11. **/
  12. static inline void pit_interrupt_hook(void)
  13. {
  14. global_clock_event->event_handler(global_clock_event);
  15. }
  16. #endif /* __ASM_I8253_H__ */