1
0
Fork 0
alistair23-linux/drivers/perf
Leonard Crestez 9ee68b314e perf/imx_ddr: Fix cpu hotplug state cleanup
This driver allocates a dynamic cpu hotplug state but never releases it.
If reloaded in a loop it will quickly trigger a WARN message:

	"No more dynamic states available for CPU hotplug"

Fix by calling cpuhp_remove_multi_state on remove like several other
perf pmu drivers.

Also fix the cleanup logic on probe error paths: add the missing
cpuhp_remove_multi_state call and properly check the return value from
cpuhp_state_add_instant_nocalls.

Fixes: 9a66d36cc7 ("drivers/perf: imx_ddr: Add DDR performance counter support to perf")
Acked-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Will Deacon <will@kernel.org>
2020-01-15 12:48:40 +00:00
..
hisilicon drivers/perf: hisi: Simplify hisi_read_sccl_and_ccl_id and its comment 2020-01-10 15:58:57 +00:00
Kconfig
Makefile
arm-cci.c perf/arm-cci: use devm_platform_ioremap_resource() to simplify code 2019-10-01 12:28:47 +01:00
arm-ccn.c perf: arm-ccn: Enable stats for CCN-512 interconnect 2019-10-28 15:40:42 +00:00
arm_dsu_pmu.c
arm_pmu.c drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-07-29 11:43:48 +01:00
arm_pmu_acpi.c arm64 updates for 5.3: 2019-07-08 09:54:55 -07:00
arm_pmu_platform.c
arm_smmuv3_pmu.c perf/smmuv3: Remove the leftover put_cpu() in error path 2019-12-18 16:15:36 +00:00
arm_spe_pmu.c arm64 updates for 5.3: 2019-07-08 09:54:55 -07:00
fsl_imx8_ddr_perf.c perf/imx_ddr: Fix cpu hotplug state cleanup 2020-01-15 12:48:40 +00:00
qcom_l2_pmu.c perf: Remove dev_err() usage after platform_get_irq() 2019-07-31 17:15:20 +01:00
qcom_l3_pmu.c docs: perf: move to the admin-guide 2019-07-15 09:20:27 -03:00
thunderx2_pmu.c drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver. 2019-10-29 10:08:46 +00:00
xgene_pmu.c perf: xgene: use devm_platform_ioremap_resource() to simplify code 2019-10-01 12:28:46 +01:00