Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257199
b: refs/heads/master
c: 01898e3
h: refs/heads/master
i:
  257197: 6d5383f
  257195: 855007b
  257191: 8496752
  257183: 9b1cef1
v: v3
  • Loading branch information
Thomas Gleixner committed Jul 1, 2011
1 parent c0d6509 commit be1fa33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: 8560a6cfc9818edde1fd8677961714b264ffa03d
refs/heads/master: 01898e3e29ea8242d81923da11ce88ba71290a48
6 changes: 3 additions & 3 deletions trunk/arch/x86/kernel/apm_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,11 +1220,11 @@ static void reinit_timer(void)

raw_spin_lock_irqsave(&i8253_lock, flags);
/* set the clock to HZ */
outb_pit(0x34, PIT_MODE); /* binary, mode 2, LSB/MSB, ch 0 */
outb_p(0x34, PIT_MODE); /* binary, mode 2, LSB/MSB, ch 0 */
udelay(10);
outb_pit(LATCH & 0xff, PIT_CH0); /* LSB */
outb_p(LATCH & 0xff, PIT_CH0); /* LSB */
udelay(10);
outb_pit(LATCH >> 8, PIT_CH0); /* MSB */
outb_p(LATCH >> 8, PIT_CH0); /* MSB */
udelay(10);
raw_spin_unlock_irqrestore(&i8253_lock, flags);
#endif
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/i8253.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

#define PIT_LATCH ((PIT_TICK_RATE + HZ/2) / HZ)

#define inb_pit inb_p
#define outb_pit outb_p

extern raw_spinlock_t i8253_lock;
extern struct clock_event_device i8253_clockevent;
extern void clockevent_i8253_init(bool oneshot);
Expand Down

0 comments on commit be1fa33

Please sign in to comment.