]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: etm4x: Remove redundant checks in PM save and restore
authorLeo Yan <leo.yan@arm.com>
Fri, 15 May 2026 20:08:20 +0000 (21:08 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 18 May 2026 09:18:46 +0000 (10:18 +0100)
commit81bf1c33f6a7b2be8523e8b3655b85ca959975cf
tree382b6bf206526fbf03f9ad0cb93f4aa43d0259df
parent0f5e588c70a868c475cef22193f12bed678e1461
coresight: etm4x: Remove redundant checks in PM save and restore

ETMv4 driver save/restore callbacks still re-check conditions that are
already validated by the core layer before the callbacks are invoked.

Remove the duplicated checks and fold the two-level functions into
direct callback implementations.  The obsolete WARN_ON() checks are
removed as well.

Reviewed-by: Mike Leach <mike.leach@linaro.org>
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-13-f88c4a3ecfe9@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c