Thread (3 messages) flat view 3 messages, 2 authors, 22d ago

Re: [PATCH] ARM: Restore get_cycles() return value

From: Thorsten Leemhuis <hidden>
Date: 2026-08-23 12:36:04
Also in: lkml, regressions

On 8/20/26 11:10, Ryan Chen wrote:
read_current_timer() returned 0 on success, so the get_cycles() ternary
yielded the cycle count on success and 0 on failure. delay_read_timer()
returns true on success, but the ternary was left alone, so get_cycles()
now yields 0 on success and an uninitialised variable on failure.
For the record and those that haven't seen this yet: this afaics was
discussed earlier already and fixed upstream by e1e3a0ab69c64e ("ARM:
Fix get_cycles() after delay_read_timer() conversion").

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