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>
Tue, 22 Feb 2022 15:57:01 +0000 (15:57 +0000)
commitad9331e45185e1a966df5147237ec987924874ea
tree43f6ef8c385ea335c7fe3fb69b69417026c34878
parentcfa3d90fe334574932b8d419ebb75cfb32993c5b
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