Re: [PATCH] ARM: Restore get_cycles() return value
Thorsten Leemhuis <[email protected]>
| Newsgroups | dev.linux.lists.regressions,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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