]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Save active path for system tracers
authorLeo Yan <leo.yan@arm.com>
Fri, 15 May 2026 20:08:26 +0000 (21:08 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 18 May 2026 09:18:46 +0000 (10:18 +0100)
commitac8eac9062eefc33f5e97e526eef69bc98ecbdbc
tree9b6687a600d6c23f3ba0c48b06c94ba4cb4eb128
parenta18e877b0491ad21b24d6f1fe2afb854990e031d
coresight: Save active path for system tracers

This commit only set the path pointer for system tracers (e.g. STM) in
coresight_{enable|disable}_source().

Later changes will set the path pointer locally for per-CPU sources.
This is because the mode and path pointer must be set together, so that
they are observed atomically by the CPU PM notifier.

Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Tested-by: James Clark <james.clark@linaro.org>
Tested-by: Jie Gan <jie.gan@oss.qualcomm.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20260515-arm_coresight_path_power_management_improvement-v14-19-f88c4a3ecfe9@arm.com
drivers/hwtracing/coresight/coresight-core.c
include/linux/coresight.h