RE: [PATCH] ARM: Restore get_cycles() return value
Ryan Chen <[email protected]>
| Newsgroups | dev.linux.lists.regressions,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <TY2PPF5CB9A1BE63A0BE5986D8BBFB42D91F2A02@TY2PPF5CB9A1BE6.apcprd06.prod.outlook.com> |
> 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.