Skip to content

Commit 961abd7

Browse files
zhangshkwilldeacon
authored andcommitted
drivers/perf: hisi: Fix wrong value for all counters enable
In L3C uncore PMU drivers, bit16 is used to control all counters enable & disable. Wrong value is given in the driver and its default value is 1'b1, it can work because each PMU counter has its own control bits too. Let's fix the wrong value. Fixes: 2940bc4 ("perf: hisi: Add support for HiSilicon SoC L3C PMU driver") Signed-off-by: Shaokun Zhang <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 91970be commit 961abd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/* L3C has 8-counters */
3636
#define L3C_NR_COUNTERS 0x8
3737

38-
#define L3C_PERF_CTRL_EN 0x20000
38+
#define L3C_PERF_CTRL_EN 0x10000
3939
#define L3C_EVTYPE_NONE 0xff
4040

4141
/*

0 commit comments

Comments
 (0)