lx_emul: unify udelay implementation

Implement udelay for all architectures within common lx_emul code,
remove driver-specific version.

Always do busy looping in udelay and use cpu_relax()
like the original Linux code. Thereby, we profit from architecture specific
instructions (cpu cool down), and jiffies are updated if irqs are on.

Ref genodelabs/genode#4778
This commit is contained in:
Stefan Kalkowski
2023-03-02 12:43:15 +01:00
committed by Christian Helmuth
parent 50541c68ec
commit 6a7a30ceaa
17 changed files with 65 additions and 198 deletions

View File

@ -37,6 +37,7 @@ SRC_C += lx_emul/shadow/kernel/sched/sched.c
SRC_C += lx_emul/shadow/kernel/smp.c
SRC_C += lx_emul/shadow/kernel/stop_machine.c
SRC_C += lx_emul/shadow/lib/cpumask.c
SRC_C += lx_emul/shadow/lib/delay.c
SRC_C += lx_emul/shadow/mm/percpu.c
SRC_C += lx_emul/shadow/mm/slab_common.c
SRC_C += lx_emul/shadow/mm/slub.c