diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-03-29 13:09:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-04-02 19:52:05 +0200 |
commit | caaa8be3b6707cb9664e573a28b00f845ce9f32e (patch) | |
tree | c6cc712c547262e74cc56168248c8da121736ecd /arch/x86/kernel/cpu/perf_event_amd.c | |
parent | b4cdc5c264b35c67007800dec3928e9547a9d70b (diff) | |
download | kernel_replicant_linux-caaa8be3b6707cb9664e573a28b00f845ce9f32e.tar.gz kernel_replicant_linux-caaa8be3b6707cb9664e573a28b00f845ce9f32e.tar.bz2 kernel_replicant_linux-caaa8be3b6707cb9664e573a28b00f845ce9f32e.zip |
perf, x86: Fix __initconst vs const
All variables that have __initconst should also be const.
Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_amd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd.c b/arch/x86/kernel/cpu/perf_event_amd.c index bbd7339f08a9..611df11ba15e 100644 --- a/arch/x86/kernel/cpu/perf_event_amd.c +++ b/arch/x86/kernel/cpu/perf_event_amd.c @@ -2,7 +2,7 @@ static DEFINE_RAW_SPINLOCK(amd_nb_lock); -static __initconst u64 amd_hw_cache_event_ids +static __initconst const u64 amd_hw_cache_event_ids [PERF_COUNT_HW_CACHE_MAX] [PERF_COUNT_HW_CACHE_OP_MAX] [PERF_COUNT_HW_CACHE_RESULT_MAX] = @@ -368,7 +368,7 @@ static void amd_pmu_cpu_dead(int cpu) raw_spin_unlock(&amd_nb_lock); } -static __initconst struct x86_pmu amd_pmu = { +static __initconst const struct x86_pmu amd_pmu = { .name = "AMD", .handle_irq = x86_pmu_handle_irq, .disable_all = x86_pmu_disable_all, |