]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
coresight: Make trace ID map spinlock local to the map
authorJames Clark <james.clark@arm.com>
Mon, 22 Jul 2024 10:11:59 +0000 (11:11 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 20 Aug 2024 14:02:38 +0000 (15:02 +0100)
commit988d40a4d4e7d671305bea501562a5d1a1d479fa
tree55172fd3abcfb82cc975755ae4a5761ecc451dad
parent487eec8da80aef16229d30429f1b26090b1bf0eb
coresight: Make trace ID map spinlock local to the map

Reduce contention on the lock by replacing the global lock with one for
each map.

Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20240722101202.26915-18-james.clark@linaro.org
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-trace-id.c
include/linux/coresight.h