[PATCH] ARM: Restore get_cycles() return value

Ryan Chen ryan_chen at aspeedtech.com
Sun Aug 23 17:59:03 PDT 2026


> 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. 


More information about the linux-arm-kernel mailing list