Skip to content

Commit ccf2648

Browse files
kimphillamdIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f11dd0d commit ccf2648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/events/amd/power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ static struct pmu pmu_class = {
213213
.stop = pmu_event_stop,
214214
.read = pmu_event_read,
215215
.capabilities = PERF_PMU_CAP_NO_EXCLUDE,
216+
.module = THIS_MODULE,
216217
};
217218

218219
static int power_cpu_exit(unsigned int cpu)

0 commit comments

Comments
 (0)