From: Kim Phillips Date: Tue, 17 Aug 2021 22:10:43 +0000 (-0500) Subject: perf/x86/amd/power: Assign pmu.module X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=ccf26483416a339c114409f6e7cd02abdeaf8052;p=kernel.git perf/x86/amd/power: Assign pmu.module Assign pmu.module so the driver can't be unloaded whilst in use. Signed-off-by: Kim Phillips Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210817221048.88063-4-kim.phillips@amd.com --- diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index 16a2369c586e8..37d5b380516ec 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -213,6 +213,7 @@ static struct pmu pmu_class = { .stop = pmu_event_stop, .read = pmu_event_read, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, + .module = THIS_MODULE, }; static int power_cpu_exit(unsigned int cpu)