2005-06-30 11:58:55 +02:00
|
|
|
#ifndef __ASM_I8253_H__
|
|
|
|
#define __ASM_I8253_H__
|
|
|
|
|
2007-02-16 10:28:04 +01:00
|
|
|
#include <linux/clockchips.h>
|
|
|
|
|
2005-06-30 11:58:55 +02:00
|
|
|
extern spinlock_t i8253_lock;
|
|
|
|
|
2007-02-16 10:28:04 +01:00
|
|
|
extern struct clock_event_device *global_clock_event;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pit_interrupt_hook - hook into timer tick
|
|
|
|
* @regs: standard registers from interrupt
|
|
|
|
*
|
|
|
|
* Call the global clock event handler.
|
|
|
|
**/
|
|
|
|
static inline void pit_interrupt_hook(void)
|
|
|
|
{
|
|
|
|
global_clock_event->event_handler(global_clock_event);
|
|
|
|
}
|
|
|
|
|
2005-06-30 11:58:55 +02:00
|
|
|
#endif /* __ASM_I8253_H__ */
|