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

From: Ryan Chen

Date: Sun Aug 23 2026 - 20:59:17 EST


> Subject: Re: [PATCH] ARM: Restore get_cycles() return value
>
> 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
Thanks the information.

Ryan.