diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-04-10 14:18:57 +0200 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-07-15 15:04:55 +0200 |
| commit | dfc256dac54c8b692110bf905c64cb130e15963d (patch) | |
| tree | 4afc93732b58e322168f62f03d85753d6012c19a /include/asm-generic | |
| parent | 3ed403bbc967a3138b8e37566510e9b062751372 (diff) | |
| download | linux-next-dfc256dac54c8b692110bf905c64cb130e15963d.tar.gz linux-next-dfc256dac54c8b692110bf905c64cb130e15963d.zip | |
calibrate: Rework delay timer calibration
The header define in asm/timex,h and the naming of the function to read the
delay timer are confusing at best.
Convert it to a config switch selected by the archictures which provide the
functionality and rename the function to delay_read_timer(), which makes
the purpose clear. Move the declaration to linux/delay.h where it belongs.
Remove the resulting empty asm/timex.h files as well.
No functional change.
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260410120317.978403520@kernel.org
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/timex.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/asm-generic/timex.h b/include/asm-generic/timex.h index 50ba9b5ce983..2032fda7052c 100644 --- a/include/asm-generic/timex.h +++ b/include/asm-generic/timex.h @@ -13,11 +13,4 @@ static inline cycles_t get_cycles(void) } #endif -/* - * Architectures are encouraged to implement read_current_timer - * and define this in order to avoid the expensive delay loop - * calibration during boot. - */ -#undef ARCH_HAS_READ_CURRENT_TIMER - #endif /* __ASM_GENERIC_TIMEX_H */ |
