]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: hisi: Fix wrong value for all counters enable
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Fri, 5 Jun 2020 09:43:41 +0000 (17:43 +0800)
committerWill Deacon <will@kernel.org>
Mon, 8 Jun 2020 14:46:41 +0000 (15:46 +0100)
commitf669674ed3b4a40b12391c606a34bba5546eb020
tree9023071443732d0e82847ccac71b77eb16f21617
parentca4fe5ae007bf21f2dba0d50bc1694053cb6d85e
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: fa19a250d2ea ("perf: hisi: Add support for HiSilicon SoC L3C PMU driver")
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/1591350221-32275-1-git-send-email-zhangshaokun@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c