summaryrefslogtreecommitdiffstats
path: root/drivers/perf/arm_dmc620_pmu.c
diff options
context:
space:
mode:
authorQi Liu <liuqi115@huawei.com>2021-02-02 08:58:06 +0100
committerWill Deacon <will@kernel.org>2021-02-02 19:40:30 +0100
commit20116dd93f4d0b2e84a25ee83e3238586dbb79ec (patch)
tree24ec9dd26cb7df0c71eb60d270db0b8c8998efee /drivers/perf/arm_dmc620_pmu.c
parentperf/arm-cmn: Move IRQs when migrating context (diff)
downloadlinux-20116dd93f4d0b2e84a25ee83e3238586dbb79ec.tar.xz
linux-20116dd93f4d0b2e84a25ee83e3238586dbb79ec.zip
drivers/perf: Prevent forced unbinding of ARM_DMC620_PMU drivers
Set "suppress_bind_attrs" to true, so that bind/unbind can be disabled via sysfs and prevent unbinding ARM_DMC620_PMU drivers during perf sampling. Signed-off-by: Qi Liu <liuqi115@huawei.com> Link: https://lore.kernel.org/r/1612252686-50329-1-git-send-email-liuqi115@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/arm_dmc620_pmu.c')
-rw-r--r--drivers/perf/arm_dmc620_pmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c
index 27f54c0afc3b..66ad5b3ece19 100644
--- a/drivers/perf/arm_dmc620_pmu.c
+++ b/drivers/perf/arm_dmc620_pmu.c
@@ -717,6 +717,7 @@ static struct platform_driver dmc620_pmu_driver = {
.driver = {
.name = DMC620_DRVNAME,
.acpi_match_table = dmc620_acpi_match,
+ .suppress_bind_attrs = true,
},
.probe = dmc620_pmu_device_probe,
.remove = dmc620_pmu_device_remove,