Thread (2 messages) flat view 2 messages, 2 authors, 24d ago

Re: [PATCH] ARM: fix get_cycles() always returning zero

From: Thomas Gleixner <tglx@kernel.org>
Date: 2026-08-31 11:34:51
Also in: lkml

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help