aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/i8253.h
blob: 6cb0dd4dcddef8c1e89791fe78c64aa8185befad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __ASM_I8253_H__
#define __ASM_I8253_H__

#include <linux/clockchips.h>

extern spinlock_t i8253_lock;

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);
}

#endif	/* __ASM_I8253_H__ */