8 #include <linux/timex.h>
9 #include <linux/module.h>
22 #ifdef CONFIG_CLKSRC_I8253
76 if (count > old_count && jifs == old_jifs)
102 #ifdef CONFIG_CLKEVT_I8253
108 static void init_pit_timer(
enum clock_event_mode
mode,
109 struct clock_event_device *
evt)
114 case CLOCK_EVT_MODE_PERIODIC:
121 case CLOCK_EVT_MODE_SHUTDOWN:
122 case CLOCK_EVT_MODE_UNUSED:
123 if (evt->mode == CLOCK_EVT_MODE_PERIODIC ||
124 evt->mode == CLOCK_EVT_MODE_ONESHOT) {
131 case CLOCK_EVT_MODE_ONESHOT:
136 case CLOCK_EVT_MODE_RESUME:
148 static int pit_next_event(
unsigned long delta,
struct clock_event_device *evt)
164 .features = CLOCK_EVT_FEAT_PERIODIC,
165 .set_mode = init_pit_timer,
166 .set_next_event = pit_next_event,
176 i8253_clockevent.features |= CLOCK_EVT_FEAT_ONESHOT;