coresight: etm4x: Add lock for reading virtual context ID comparator
authorLeo Yan <leo.yan@linaro.org>
Fri, 4 Feb 2022 15:24:00 +0000 (23:24 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 4 Feb 2022 16:37:28 +0000 (16:37 +0000)
commita4dabc3d30ea502fbd34319576f708174e328b72
tree6cca4f715b78b809334352a2da2127e4eb008ce5
parentebbce265bba164c4f0d5271c277a540bd3b2fd3c
coresight: etm4x: Add lock for reading virtual context ID comparator

Updates to the values and the index are protected via the spinlock.
Ensure we use the same lock to read the value safely.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20220204152403.71775-2-leo.yan@linaro.org
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c