[PATCH] perf: alibaba_uncore_drw_pmu: remove unused macro

Ba Jing bajing at cmss.chinamobile.com
Sat Oct 12 00:45:34 PDT 2024


By reading the code, I found the marco ALI_DRW_PMU_CNT_STATE is
never referenced in the code. Just remove it.

Signed-off-by: Ba Jing <bajing at cmss.chinamobile.com>
---
 drivers/perf/alibaba_uncore_drw_pmu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/perf/alibaba_uncore_drw_pmu.c b/drivers/perf/alibaba_uncore_drw_pmu.c
index c6ff1bc7d336..8218daddf370 100644
--- a/drivers/perf/alibaba_uncore_drw_pmu.c
+++ b/drivers/perf/alibaba_uncore_drw_pmu.c
@@ -43,7 +43,6 @@
 #define ALI_DRW_PMU_CNT_STOP			BIT(1)
 #define ALI_DRW_PMU_CNT_START			BIT(0)
 
-#define ALI_DRW_PMU_CNT_STATE			0xC04
 #define ALI_DRW_PMU_TEST_CTRL			0xC08
 #define ALI_DRW_PMU_CNT_PRELOAD			0xC0C
 
-- 
2.33.0






More information about the linux-arm-kernel mailing list