diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-19 07:10:43 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-10-19 10:15:47 -0400 |
commit | 642e641cbea57e559720b9df09889ffcf525cf04 (patch) | |
tree | 3a8ec7714f0e45c8bfe9014b5aacd1957ff40828 | |
parent | 0cfe5b5fc0277463fa795dea312a3a2fd5e8bac2 (diff) |
x86/events/amd/iommu: Make iommu_pmu const and __initconst
iommu_pmu is only used as source for a copy operation in the init code
path.
Mark it const and __initconst.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: julia.lawall@lip6.fr
Link: https://lkml.kernel.org/r/1505819443-670-1-git-send-email-bhumirks@gmail.com
-rw-r--r-- | arch/x86/events/amd/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/amd/iommu.c b/arch/x86/events/amd/iommu.c index 3641e24fdac5..38b5d41b0c37 100644 --- a/arch/x86/events/amd/iommu.c +++ b/arch/x86/events/amd/iommu.c | |||
@@ -405,7 +405,7 @@ const struct attribute_group *amd_iommu_attr_groups[] = { | |||
405 | NULL, | 405 | NULL, |
406 | }; | 406 | }; |
407 | 407 | ||
408 | static struct pmu iommu_pmu = { | 408 | static const struct pmu iommu_pmu __initconst = { |
409 | .event_init = perf_iommu_event_init, | 409 | .event_init = perf_iommu_event_init, |
410 | .add = perf_iommu_add, | 410 | .add = perf_iommu_add, |
411 | .del = perf_iommu_del, | 411 | .del = perf_iommu_del, |