On 8/18/2026 6:31 PM, Brian Cain wrote:
> hexagon_get_sys_pcycle_count() iterates all CPUs, so take the BQL with
> BQL_LOCK_GUARD() instead of asserting the caller already holds it.
> Convert the matching setters the same way, which keeps the locking
> contract symmetric and makes the read-modify-write in the _low/_high
> setters atomic.  BQL_LOCK_GUARD() is a no-op when the lock is already
> held, so the nested guards on the guest-register read path cost nothing.
> 
> Signed-off-by: Brian Cain <[email protected]>
> ---
>  target/hexagon/cpu_helper.c | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to