diff options
Diffstat (limited to 'drivers/clocksource/i8253.c')
-rw-r--r-- | drivers/clocksource/i8253.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clocksource/i8253.c b/drivers/clocksource/i8253.c index 27c49e60b7d6..e7cab2da910f 100644 --- a/drivers/clocksource/i8253.c +++ b/drivers/clocksource/i8253.c | |||
@@ -53,7 +53,7 @@ static cycle_t i8253_read(struct clocksource *cs) | |||
53 | count |= inb_p(PIT_CH0) << 8; | 53 | count |= inb_p(PIT_CH0) << 8; |
54 | 54 | ||
55 | /* VIA686a test code... reset the latch if count > max + 1 */ | 55 | /* VIA686a test code... reset the latch if count > max + 1 */ |
56 | if (count > LATCH) { | 56 | if (count > PIT_LATCH) { |
57 | outb_p(0x34, PIT_MODE); | 57 | outb_p(0x34, PIT_MODE); |
58 | outb_p(PIT_LATCH & 0xff, PIT_CH0); | 58 | outb_p(PIT_LATCH & 0xff, PIT_CH0); |
59 | outb_p(PIT_LATCH >> 8, PIT_CH0); | 59 | outb_p(PIT_LATCH >> 8, PIT_CH0); |
@@ -114,8 +114,8 @@ static void init_pit_timer(enum clock_event_mode mode, | |||
114 | case CLOCK_EVT_MODE_PERIODIC: | 114 | case CLOCK_EVT_MODE_PERIODIC: |
115 | /* binary, mode 2, LSB/MSB, ch 0 */ | 115 | /* binary, mode 2, LSB/MSB, ch 0 */ |
116 | outb_p(0x34, PIT_MODE); | 116 | outb_p(0x34, PIT_MODE); |
117 | outb_p(LATCH & 0xff , PIT_CH0); /* LSB */ | 117 | outb_p(PIT_LATCH & 0xff , PIT_CH0); /* LSB */ |
118 | outb_p(LATCH >> 8 , PIT_CH0); /* MSB */ | 118 | outb_p(PIT_LATCH >> 8 , PIT_CH0); /* MSB */ |
119 | break; | 119 | break; |
120 | 120 | ||
121 | case CLOCK_EVT_MODE_SHUTDOWN: | 121 | case CLOCK_EVT_MODE_SHUTDOWN: |