diff options
author | Kim Phillips <kim.phillips@amd.com> | 2021-08-18 01:10:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-08 09:50:20 +0300 |
commit | 39c6cf24c4ff30e5892b87409a3cd85170e2fa9c (patch) | |
tree | 1154de1d9920fb094ff81597744b59db6a441d4e /arch/x86 | |
parent | 3e3bb99d69a3e38557a06d7526b35f6e839bf39d (diff) | |
download | linux-39c6cf24c4ff30e5892b87409a3cd85170e2fa9c.tar.xz |
perf/x86/amd/power: Assign pmu.module
[ Upstream commit ccf26483416a339c114409f6e7cd02abdeaf8052 ]
Assign pmu.module so the driver can't be unloaded whilst in use.
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210817221048.88063-4-kim.phillips@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/events/amd/power.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index 16a2369c586e..37d5b380516e 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) |