Skip to contentSkip to conversation

x86/psr: make opt_psr persistent

PATCH In review Chao Peng 3 participants 3 messages May 26, 2016

lore
Share & tools
lore

Chao Peng

author
#0 lore raw

PATCH 1/1 x86/psr: make opt_psr persistent

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.

---
 xen/arch/x86/psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/psr.c +1 -1
index f796552..0b5073c 100644
@@ -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;
Signature · 7 lines
1.9.1


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Chao Peng

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.

Wei: This should be taken for 4.7

~Andrew

Quoted 9 lines
---
 xen/arch/x86/psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/psr.c +0 -0
index f796552..0b5073c 100644

xen/arch/x86/psr.c static unsigned long *__read_mostly cat_socket_enable; · line 58

Quoted 8 lines
xen/arch/x86/psr.c +1 -1
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 11 lines · Andrew Cooper
Quoted 5 lines · Chao Peng

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.

Wei: This should be taken for 4.7

Quoted 14 lines

~Andrew

Quoted 12 lines
---
 xen/arch/x86/psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/psr.c +0 -0
index f796552..0b5073c 100644
@@ -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;
 
Quoted 6 lines

xen/arch/x86/psr.c static unsigned long *__read_mostly cat_socket_enable; · line 58

Quoted 5 lines
xen/arch/x86/psr.c +1 -1
-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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel