Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62323
b: refs/heads/master
c: 7671988
h: refs/heads/master
i:
  62321: 63f9a55
  62319: ea44fe4
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jul 22, 2007
1 parent 554e2fa commit ccb741d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 82644459c592a28a3eab682f9b88d81019ddfe8b
refs/heads/master: 7671988b9cd31daf53fd38f8e75c8b881324842b
9 changes: 6 additions & 3 deletions trunk/arch/i386/kernel/i8253.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ static void init_pit_timer(enum clock_event_mode mode,

case CLOCK_EVT_MODE_SHUTDOWN:
case CLOCK_EVT_MODE_UNUSED:
outb_p(0x30, PIT_MODE);
outb_p(0, PIT_CH0); /* LSB */
outb_p(0, PIT_CH0); /* MSB */
if (evt->mode == CLOCK_EVT_MODE_PERIODIC ||
evt->mode == CLOCK_EVT_MODE_ONESHOT) {
outb_p(0x30, PIT_MODE);
outb_p(0, PIT_CH0);
outb_p(0, PIT_CH0);
}
break;

case CLOCK_EVT_MODE_ONESHOT:
Expand Down

0 comments on commit ccb741d

Please sign in to comment.