diff options
author | Qi Liu <liuqi115@huawei.com> | 2021-02-02 10:58:06 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-02-02 21:40:30 +0300 |
commit | 20116dd93f4d0b2e84a25ee83e3238586dbb79ec (patch) | |
tree | 24ec9dd26cb7df0c71eb60d270db0b8c8998efee /drivers/perf/arm_dmc620_pmu.c | |
parent | 1c8147ea89c883d1f4e20f1b1d9c879291430102 (diff) | |
download | linux-20116dd93f4d0b2e84a25ee83e3238586dbb79ec.tar.xz |
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.c | 1 |
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, |