Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277421
b: refs/heads/master
c: 5f724e8
h: refs/heads/master
i:
  277419: 11bc8e8
v: v3
  • Loading branch information
Deepak Saxena authored and John Stultz committed Nov 22, 2011
1 parent be55d4c commit f1169d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbf1599b3589c6c73999095ca25e9c3f23042e19
refs/heads/master: 5f724e84f91550985a9ae3deb6e0dbc8d8396ed7
6 changes: 3 additions & 3 deletions trunk/drivers/clocksource/i8253.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static cycle_t i8253_read(struct clocksource *cs)
count |= inb_p(PIT_CH0) << 8;

/* VIA686a test code... reset the latch if count > max + 1 */
if (count > LATCH) {
if (count > PIT_LATCH) {
outb_p(0x34, PIT_MODE);
outb_p(PIT_LATCH & 0xff, PIT_CH0);
outb_p(PIT_LATCH >> 8, PIT_CH0);
Expand Down Expand Up @@ -114,8 +114,8 @@ static void init_pit_timer(enum clock_event_mode mode,
case CLOCK_EVT_MODE_PERIODIC:
/* binary, mode 2, LSB/MSB, ch 0 */
outb_p(0x34, PIT_MODE);
outb_p(LATCH & 0xff , PIT_CH0); /* LSB */
outb_p(LATCH >> 8 , PIT_CH0); /* MSB */
outb_p(PIT_LATCH & 0xff , PIT_CH0); /* LSB */
outb_p(PIT_LATCH >> 8 , PIT_CH0); /* MSB */
break;

case CLOCK_EVT_MODE_SHUTDOWN:
Expand Down

0 comments on commit f1169d5

Please sign in to comment.