diff options
author | James Clark <james.clark@arm.com> | 2024-01-29 15:40:32 +0000 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2024-02-12 10:21:37 +0000 |
commit | f68bbe4dcfa303164922bc331d2e8d38ed2d4f23 (patch) | |
tree | 86f3e31fc8b1000b35815690453d8984b4622f89 /include/linux/coresight.h | |
parent | dd95255d44c05c9977f962bf0f2afe5e11f8ab3e (diff) |
coresight: Fix issue where a source device's helpers aren't disabled
The linked commit reverts the change that accidentally used some sysfs
enable/disable functions from Perf which broke the refcounting, but it
also removes the fact that the sysfs disable function disabled the
helpers.
Add a new wrapper function that does both which is used by both Perf and
sysfs, and label the sysfs disable function appropriately. The naming of
all of the functions will be tidied up later to avoid this happening
again.
Fixes: 287e82cf69aa ("coresight: Fix crash when Perf and sysfs modes are used concurrently")
Signed-off-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20240129154050.569566-2-james.clark@arm.com
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Diffstat (limited to 'include/linux/coresight.h')
0 files changed, 0 insertions, 0 deletions