]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixed ms-based scheduling for legacy timer
authorTomas Hruby <tom@minix3.org>
Wed, 26 May 2010 08:20:29 +0000 (08:20 +0000)
committerTomas Hruby <tom@minix3.org>
Wed, 26 May 2010 08:20:29 +0000 (08:20 +0000)
kernel/arch/i386/arch_clock.c

index 93d7e5e9961be6e155196abca56364665ef7049b..f43d992b9ab5091fbb9ec681f11efff93eb4dd83 100644 (file)
@@ -113,7 +113,6 @@ PRIVATE void estimate_cpu_freq(void)
 
        /* set the PIC timer to get some time */
        intr_enable();
-       init_8253A_timer(system_hz);
 
        /* loop for some time to get a sample */
        while(probe_ticks < PROBE_TICKS) {
@@ -121,7 +120,6 @@ PRIVATE void estimate_cpu_freq(void)
        }
 
        intr_disable();
-       stop_8253A_timer();
 
        /* remove the probe */
        rm_irq_handler(&calib_cpu);