]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: cti: Remove hw_enabled flag
authorLeo Yan <leo.yan@arm.com>
Thu, 26 Feb 2026 09:23:55 +0000 (09:23 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 3 Mar 2026 10:23:46 +0000 (10:23 +0000)
commitd5e57babdffb961ca8b51910d00c2c0ddb03c54a
treee6a63ce96e7e40b0e00f495249c484dc5f225be8
parentdaedb30fd6ac68a100912407aba3a4fdba8a4080
coresight: cti: Remove hw_enabled flag

The enable_req_count field already tracks whether the CTI device is
enabled.  A non-zero value indicates that the device is active, the
hw_enabled flag is redundant if so.

Remove hw_enabled and update cti_is_active() to check enable_req_count.
Replace open-coded enable_req_count checks with cti_is_active().

Reviewed-by: Mike Leach <mike.leach@arm.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/20260226-arm_coresight_cti_refactor_v1-v2-7-b30fada3cfec@arm.com
drivers/hwtracing/coresight/coresight-cti-core.c
drivers/hwtracing/coresight/coresight-cti-sysfs.c
drivers/hwtracing/coresight/coresight-cti.h