提交 642e641c 编写于 作者: B Bhumika Goyal 提交者: Thomas Gleixner

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: NBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: julia.lawall@lip6.fr
Link: https://lkml.kernel.org/r/1505819443-670-1-git-send-email-bhumirks@gmail.com
上级 0cfe5b5f
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册