aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 12eb07bfb267..312c9e3cb635 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -777,11 +777,11 @@ static DEFINE_PER_CPU(unsigned long, xen_cr0_value);
777 777
778static unsigned long xen_read_cr0(void) 778static unsigned long xen_read_cr0(void)
779{ 779{
780 unsigned long cr0 = percpu_read(xen_cr0_value); 780 unsigned long cr0 = this_cpu_read(xen_cr0_value);
781 781
782 if (unlikely(cr0 == 0)) { 782 if (unlikely(cr0 == 0)) {
783 cr0 = native_read_cr0(); 783 cr0 = native_read_cr0();
784 percpu_write(xen_cr0_value, cr0); 784 this_cpu_write(xen_cr0_value, cr0);
785 } 785 }
786 786
787 return cr0; 787 return cr0;
@@ -791,7 +791,7 @@ static void xen_write_cr0(unsigned long cr0)
791{ 791{
792 struct multicall_space mcs; 792 struct multicall_space mcs;
793 793
794 percpu_write(xen_cr0_value, cr0); 794 this_cpu_write(xen_cr0_value, cr0);
795 795
796 /* Only pay attention to cr0.TS; everything else is 796 /* Only pay attention to cr0.TS; everything else is
797 ignored. */ 797 ignored. */