]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: sysfs: Use source's path pointer for path control
authorLeo Yan <leo.yan@arm.com>
Fri, 15 May 2026 20:08:29 +0000 (21:08 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 18 May 2026 09:18:47 +0000 (10:18 +0100)
commita2e91258e8647f729eed80e13dc2423aa5fb7417
tree0e516f2b9e08dd518f4ac84d9278195b206880ee
parentbc9907750718cdaad85870c93f2c72db5c85e345
coresight: sysfs: Use source's path pointer for path control

Since the path pointer is stored in the source's structure, retrieve it
directly when disabling the path.

As a result, the global variables used for caching path pointers are no
longer needed. Remove them to simplify the code.

Tested-by: James Clark <james.clark@linaro.org>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-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-22-f88c4a3ecfe9@arm.com
drivers/hwtracing/coresight/coresight-sysfs.c