x86/resctrl: Fix init const confusion
authorAndi Kleen <andi@firstfloor.org>
Sun, 25 Apr 2021 21:12:29 +0000 (14:12 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 5 May 2021 19:50:14 +0000 (21:50 +0200)
const variable must be initconst, not initdata.

Signed-off-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210425211229.3157674-1-ak@linux.intel.com
arch/x86/kernel/cpu/resctrl/monitor.c

index dbeaa84..f07c10b 100644 (file)
@@ -84,7 +84,7 @@ unsigned int resctrl_cqm_threshold;
 static const struct mbm_correction_factor_table {
        u32 rmidthreshold;
        u64 cf;
-} mbm_cf_table[] __initdata = {
+} mbm_cf_table[] __initconst = {
        {7,     CF(1.000000)},
        {15,    CF(1.000000)},
        {15,    CF(0.969650)},