Messages in this thread Patch in this message | | | Date | Sun, 28 Jun 2009 14:04:51 -0700 | From | Yinghai Lu <> | Subject | [PATCH] x86/perf_count: change intel_pmu and amd_pmu to initdata |
| |
it is assigned to x86_pmu aka copied to x86_pmu so change it to __initdata
[Impact: cleanup]
Signed-off-by: Yinghai Lu <yinghai@kernel.org> --- arch/x86/kernel/cpu/perf_counter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6/arch/x86/kernel/cpu/perf_counter.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/cpu/perf_counter.c +++ linux-2.6/arch/x86/kernel/cpu/perf_counter.c @@ -1351,7 +1351,7 @@ static __read_mostly struct notifier_blo .priority = 1 }; -static struct x86_pmu intel_pmu = { +static __initdata struct x86_pmu intel_pmu = { .name = "Intel", .handle_irq = intel_pmu_handle_irq, .disable_all = intel_pmu_disable_all, @@ -1371,7 +1371,7 @@ static struct x86_pmu intel_pmu = { .max_period = (1ULL << 31) - 1, }; -static struct x86_pmu amd_pmu = { +static __initdata struct x86_pmu amd_pmu = { .name = "AMD", .handle_irq = amd_pmu_handle_irq, .disable_all = amd_pmu_disable_all,
| |