diff options
-rw-r--r-- | arch/x86/events/intel/cstate.c | 2 | ||||
-rw-r--r-- | arch/x86/events/intel/rapl.c | 1 | ||||
-rw-r--r-- | arch/x86/events/intel/uncore.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index fec8a461bdef..1076c9a77292 100644 --- a/arch/x86/events/intel/cstate.c +++ b/arch/x86/events/intel/cstate.c | |||
@@ -434,6 +434,7 @@ static struct pmu cstate_core_pmu = { | |||
434 | .stop = cstate_pmu_event_stop, | 434 | .stop = cstate_pmu_event_stop, |
435 | .read = cstate_pmu_event_update, | 435 | .read = cstate_pmu_event_update, |
436 | .capabilities = PERF_PMU_CAP_NO_INTERRUPT, | 436 | .capabilities = PERF_PMU_CAP_NO_INTERRUPT, |
437 | .module = THIS_MODULE, | ||
437 | }; | 438 | }; |
438 | 439 | ||
439 | static struct pmu cstate_pkg_pmu = { | 440 | static struct pmu cstate_pkg_pmu = { |
@@ -447,6 +448,7 @@ static struct pmu cstate_pkg_pmu = { | |||
447 | .stop = cstate_pmu_event_stop, | 448 | .stop = cstate_pmu_event_stop, |
448 | .read = cstate_pmu_event_update, | 449 | .read = cstate_pmu_event_update, |
449 | .capabilities = PERF_PMU_CAP_NO_INTERRUPT, | 450 | .capabilities = PERF_PMU_CAP_NO_INTERRUPT, |
451 | .module = THIS_MODULE, | ||
450 | }; | 452 | }; |
451 | 453 | ||
452 | static const struct cstate_model nhm_cstates __initconst = { | 454 | static const struct cstate_model nhm_cstates __initconst = { |
diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index bd34124449b0..17c3564d087a 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/rapl.c | |||
@@ -697,6 +697,7 @@ static int __init init_rapl_pmus(void) | |||
697 | rapl_pmus->pmu.start = rapl_pmu_event_start; | 697 | rapl_pmus->pmu.start = rapl_pmu_event_start; |
698 | rapl_pmus->pmu.stop = rapl_pmu_event_stop; | 698 | rapl_pmus->pmu.stop = rapl_pmu_event_stop; |
699 | rapl_pmus->pmu.read = rapl_pmu_event_read; | 699 | rapl_pmus->pmu.read = rapl_pmu_event_read; |
700 | rapl_pmus->pmu.module = THIS_MODULE; | ||
700 | return 0; | 701 | return 0; |
701 | } | 702 | } |
702 | 703 | ||
diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c index 97c246f84dea..8c4ccdc3a3f3 100644 --- a/arch/x86/events/intel/uncore.c +++ b/arch/x86/events/intel/uncore.c | |||
@@ -733,6 +733,7 @@ static int uncore_pmu_register(struct intel_uncore_pmu *pmu) | |||
733 | .start = uncore_pmu_event_start, | 733 | .start = uncore_pmu_event_start, |
734 | .stop = uncore_pmu_event_stop, | 734 | .stop = uncore_pmu_event_stop, |
735 | .read = uncore_pmu_event_read, | 735 | .read = uncore_pmu_event_read, |
736 | .module = THIS_MODULE, | ||
736 | }; | 737 | }; |
737 | } else { | 738 | } else { |
738 | pmu->pmu = *pmu->type->pmu; | 739 | pmu->pmu = *pmu->type->pmu; |