[PATCH] Time: i386 Conversion - part 1: Move timer_pit.c to i8253.c
[deliverable/linux.git] / arch / i386 / kernel / timers / timer_pit.c
index e42e46d351591d583782921f6b30e5b302b2285a..44cbdf9bda9df2df7ff41ec70ea7a7aecccd1540 100644 (file)
@@ -25,8 +25,9 @@ static int __init init_pit(char* override)
 {
        /* check clock override */
        if (override[0] && strncmp(override,"pit",3))
-               printk(KERN_ERR "Warning: clock= override failed. Defaulting to PIT\n");
+               printk(KERN_ERR "Warning: clock= override failed. Defaulting "
+                               "to PIT\n");
+       init_cpu_khz();
        count_p = LATCH;
        return 0;
 }
@@ -161,16 +162,3 @@ struct init_timer_opts __initdata timer_pit_init = {
        .init = init_pit, 
        .opts = &timer_pit,
 };
-
-void setup_pit_timer(void)
-{
-       unsigned long flags;
-
-       spin_lock_irqsave(&i8253_lock, flags);
-       outb_p(0x34,PIT_MODE);          /* binary, mode 2, LSB/MSB, ch 0 */
-       udelay(10);
-       outb_p(LATCH & 0xff , PIT_CH0); /* LSB */
-       udelay(10);
-       outb(LATCH >> 8 , PIT_CH0);     /* MSB */
-       spin_unlock_irqrestore(&i8253_lock, flags);
-}
This page took 0.024577 seconds and 5 git commands to generate.