From: Tomas Hruby Date: Wed, 26 May 2010 08:20:29 +0000 (+0000) Subject: Fixed ms-based scheduling for legacy timer X-Git-Tag: v3.1.7~34 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/man.host.html?a=commitdiff_plain;h=24764ff47abb9a708d6a6953f3417ee0b65b6cb6;p=minix.git Fixed ms-based scheduling for legacy timer --- diff --git a/kernel/arch/i386/arch_clock.c b/kernel/arch/i386/arch_clock.c index 93d7e5e99..f43d992b9 100644 --- a/kernel/arch/i386/arch_clock.c +++ b/kernel/arch/i386/arch_clock.c @@ -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);