aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/resctrl/monitor.c
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2021-04-25 14:12:29 -0700
committerThomas Gleixner <tglx@linutronix.de>2021-05-05 21:50:14 +0200
commit4029b9706d53e5e8db2e1cee6ecd75e60b62cd09 (patch)
tree5a6a007040df5fc1ff73aaaa8d14bd6474942fa2 /arch/x86/kernel/cpu/resctrl/monitor.c
parentx86: Delete UD0, UD1 traces (diff)
downloadlinux-dev-4029b9706d53e5e8db2e1cee6ecd75e60b62cd09.tar.xz
linux-dev-4029b9706d53e5e8db2e1cee6ecd75e60b62cd09.zip
x86/resctrl: Fix init const confusion
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
Diffstat (limited to '')
-rw-r--r--arch/x86/kernel/cpu/resctrl/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c
index dbeaa8409313..f07c10b87a87 100644
--- a/arch/x86/kernel/cpu/resctrl/monitor.c
+++ b/arch/x86/kernel/cpu/resctrl/monitor.c
@@ -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)},