Skip to content

Commit

Permalink
perf/x86/amd/power: Assign pmu.module
Browse files Browse the repository at this point in the history
[ Upstream commit ccf2648 ]

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>
  • Loading branch information
kimphillamd authored and gregkh committed Sep 8, 2021
1 parent ec9a82e commit 61a038f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/events/amd/power.c
Expand Up @@ -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)
Expand Down

0 comments on commit 61a038f

Please sign in to comment.