blob: 6cb0dd4dcddef8c1e89791fe78c64aa8185befad [file] [log] [blame]
Ingo Molnar306e4402005-06-30 02:58:55 -07001#ifndef __ASM_I8253_H__
2#define __ASM_I8253_H__
3
Thomas Gleixnere9e2cdb2007-02-16 01:28:04 -08004#include <linux/clockchips.h>
5
Ingo Molnar306e4402005-06-30 02:58:55 -07006extern spinlock_t i8253_lock;
7
Thomas Gleixnere9e2cdb2007-02-16 01:28:04 -08008extern struct clock_event_device *global_clock_event;
9
10/**
11 * pit_interrupt_hook - hook into timer tick
12 * @regs: standard registers from interrupt
13 *
14 * Call the global clock event handler.
15 **/
16static inline void pit_interrupt_hook(void)
17{
18 global_clock_event->event_handler(global_clock_event);
19}
20
Ingo Molnar306e4402005-06-30 02:58:55 -070021#endif /* __ASM_I8253_H__ */