Commit 4ea4c54b authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] use names for PIT access. Not all PIT is the same location

parent 682b7ff3
......@@ -36,6 +36,8 @@
#include <mach_apic.h>
#include "io_ports.h"
void __init apic_intr_init(void)
{
#ifdef CONFIG_SMP
......@@ -739,9 +741,9 @@ static unsigned int __init get_8254_timer_count(void)
spin_lock_irqsave(&i8253_lock, flags);
outb_p(0x00, 0x43);
count = inb_p(0x40);
count |= inb_p(0x40) << 8;
outb_p(0x00, PIT_MODE);
count = inb_p(PIT_CH0);
count |= inb_p(PIT_CH0) << 8;
spin_unlock_irqrestore(&i8253_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment