pc: consolidate __const_udelay for linux drivers

Use common implementation used by wifi and (not merged) audio driver.
Avoid usage of lib/delay.c since lpj and loop_for_jiffies are not calibrated
for the ported drivers as done on native Linux during boot and leads to wrong
delays for usb and intel_fb.

Issue #4540
This commit is contained in:
Alexander Boettcher
2022-06-30 16:40:30 +02:00
committed by Christian Helmuth
parent 7b4556e546
commit 46b487c2f7
13 changed files with 87 additions and 29 deletions

View File

@ -26,7 +26,6 @@ unsigned long long sched_clock(void)
void time_init(void)
{
lx_emul_time_init(); /* replaces timer_probe() */
lpj_fine = 1000000 / HZ;
}