]> Git Repo - linux.git/commitdiff
x86/events/amd/iommu: Make iommu_pmu const and __initconst
authorBhumika Goyal <[email protected]>
Tue, 19 Sep 2017 11:10:43 +0000 (16:40 +0530)
committerThomas Gleixner <[email protected]>
Thu, 19 Oct 2017 14:15:47 +0000 (16:15 +0200)
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/events/amd/iommu.c

index 3641e24fdac5801a32b2d23b89c1ce7775807e2f..38b5d41b0c37d6d4b76237060bee30b7de2ff049 100644 (file)
@@ -405,7 +405,7 @@ const struct attribute_group *amd_iommu_attr_groups[] = {
        NULL,
 };
 
-static struct pmu iommu_pmu = {
+static const struct pmu iommu_pmu __initconst = {
        .event_init     = perf_iommu_event_init,
        .add            = perf_iommu_add,
        .del            = perf_iommu_del,
This page took 0.064055 seconds and 4 git commands to generate.