Fixed ms-based scheduling for legacy timer
This commit is contained in:
parent
a8111c5027
commit
24764ff47a
@ -113,7 +113,6 @@ PRIVATE void estimate_cpu_freq(void)
|
|||||||
|
|
||||||
/* set the PIC timer to get some time */
|
/* set the PIC timer to get some time */
|
||||||
intr_enable();
|
intr_enable();
|
||||||
init_8253A_timer(system_hz);
|
|
||||||
|
|
||||||
/* loop for some time to get a sample */
|
/* loop for some time to get a sample */
|
||||||
while(probe_ticks < PROBE_TICKS) {
|
while(probe_ticks < PROBE_TICKS) {
|
||||||
@ -121,7 +120,6 @@ PRIVATE void estimate_cpu_freq(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
intr_disable();
|
intr_disable();
|
||||||
stop_8253A_timer();
|
|
||||||
|
|
||||||
/* remove the probe */
|
/* remove the probe */
|
||||||
rm_irq_handler(&calib_cpu);
|
rm_irq_handler(&calib_cpu);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user