walnux/arch
Matteo Golin 504ec6b2c6 arch/udelay: Make common, weak definition of up_*delay functions
Many different architectures re-implemented the exact same code for
`up_*delay` because it was originally written as architecture dependent
code. Busy-waiting can be done regardless of architecture, so this
commit moves that duplicated implementation to a common file with weak
definitions so that individual architectures (see tc32) are still able
to override the definition if needed/desired.

Default implementation is not included if ARCH_TIMER is enabled, since
it is more accurate and provides its own weak definitions to override.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2025-09-29 09:22:56 +08:00
..
arm arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
arm64 bcm2711/mailbox: Implementation for mailbox API 2025-09-28 10:06:02 +08:00
avr arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
ceva arch: optimize up_check_tcbstack for stack overflow detection 2025-09-27 12:56:11 +08:00
dummy arch: Add custom arch chip build support 2020-10-20 14:48:16 +08:00
hc arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
mips arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
misoc arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
or1k arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
renesas arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
risc-v arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
sim arch: optimize up_check_tcbstack for stack overflow detection 2025-09-27 12:56:11 +08:00
sparc arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
tricore arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
x86 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
x86_64 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
xtensa arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
z16 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
z80 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/Kconfig: Add condition checking in Kconfig source statement 2025-09-16 09:34:56 +02:00