[PATCH v2 01/28] coresight: Change device mode to atomic type
Yeoreum Yun
yeoreum.yun at arm.com
Wed Jul 2 02:49:01 PDT 2025
Hi Leo,
> {
> - return local_cmpxchg(&csdev->mode, CS_MODE_DISABLED, new_mode) ==
> - CS_MODE_DISABLED;
> + int curr = CS_MODE_DISABLED;
> +
> + return atomic_try_cmpxchg_acquire(&csdev->mode, &curr, new_mode);
> }
Just question. why is acquire symentic enough in here?
before this change, local_cmpxchg seems to use full_fenced.
--
Sincerely,
Yeoreum Yun
More information about the linux-arm-kernel
mailing list