projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11dd0d
)
perf/x86/amd/power: Assign pmu.module
author
Kim Phillips
<kim.phillips@amd.com>
Tue, 17 Aug 2021 22:10:43 +0000
(17:10 -0500)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 26 Aug 2021 07:12:57 +0000
(09:12 +0200)
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
arch/x86/events/amd/power.c
patch
|
blob
|
history
diff --git
a/arch/x86/events/amd/power.c
b/arch/x86/events/amd/power.c
index 16a2369c586e88ed382477c09d60a72c98ab4263..37d5b380516ec4ecd85a9828273b778d7de9d29b 100644
(file)
--- 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)