]> Pileus Git - ~andy/linux/blobdiff - arch/x86/kernel/cpu/perf_event_knc.c
x86: Constify a few items
[~andy/linux] / arch / x86 / kernel / cpu / perf_event_knc.c
index 4b7731bf23a812a4631aa7c53196068924b52ee7..838fa8772c628822cd3bd26b6949af47886fbd4f 100644 (file)
@@ -17,7 +17,7 @@ static const u64 knc_perfmon_event_map[] =
   [PERF_COUNT_HW_BRANCH_MISSES]                = 0x002b,
 };
 
-static __initconst u64 knc_hw_cache_event_ids
+static const u64 __initconst knc_hw_cache_event_ids
                                [PERF_COUNT_HW_CACHE_MAX]
                                [PERF_COUNT_HW_CACHE_OP_MAX]
                                [PERF_COUNT_HW_CACHE_RESULT_MAX] =
@@ -284,7 +284,7 @@ static struct attribute *intel_knc_formats_attr[] = {
        NULL,
 };
 
-static __initconst struct x86_pmu knc_pmu = {
+static const struct x86_pmu knc_pmu __initconst = {
        .name                   = "knc",
        .handle_irq             = knc_pmu_handle_irq,
        .disable_all            = knc_pmu_disable_all,