x86/psr: make opt_psr persistent
authorChao Peng <chao.p.peng@linux.intel.com>
Thu, 26 May 2016 02:03:13 +0000 (10:03 +0800)
committerWei Liu <wei.liu2@citrix.com>
Thu, 26 May 2016 16:24:40 +0000 (17:24 +0100)
opt_psr is now not only used at booting time but also at runtime.
More specifically, it is used to check CDP switch in psr_cpu_init()
which can potentially be called in CPU hotplug case.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/psr.c

index f7965520ca9004783597d6bc6f34c9963b8d0dd4..0b5073c41ff0112ff98bd5c3eb298a6da85e7652 100644 (file)
@@ -52,7 +52,7 @@ static unsigned long *__read_mostly cat_socket_enable;
 static struct psr_cat_socket_info *__read_mostly cat_socket_info;
 static unsigned long *__read_mostly cdp_socket_enable;
 
-static unsigned int __initdata opt_psr;
+static unsigned int opt_psr;
 static unsigned int __initdata opt_rmid_max = 255;
 static unsigned int __read_mostly opt_cos_max = 255;
 static uint64_t rmid_mask;