Re: [PATCH] ARM: fix get_cycles() always returning zero
From: Thomas Gleixner
Date: Mon Aug 31 2026 - 07:39:52 EST
On Thu, Aug 27 2026 at 09:54, Tapio Reijonen wrote:
> Commit dfc256dac54c ("calibrate: Rework delay timer calibration")
> renamed read_current_timer() to delay_read_timer() and inverted its
> return convention: the old function returned 0 on success, the new one
> returns true on success. The ternary in get_cycles() was not updated,
> so it now evaluates to 0 whenever the delay timer is present and
> readable, which is precisely when it used to work.
commit e1e3a0ab69c64eedaf53dce9306f8a090bf038f0 upstream