]> git.hungrycats.org Git - linux/commitdiff
[PATCH] use names for PIT access. Not all PIT is the same location
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 17 Apr 2003 09:28:48 +0000 (02:28 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 17 Apr 2003 09:28:48 +0000 (02:28 -0700)
arch/i386/kernel/apic.c

index dd9b25424f0c628cfe36d2f4a8d9654f05184f8d..a07a0c9cc7ed9fa4e3d144307fdd5bb75c6aa272 100644 (file)
@@ -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);