aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-07-08 18:06:40 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-16 04:57:45 -0400
commitce87b3d326de733c72b47662f106ee6cd699a20f (patch)
tree6cc34db72537616ad043117b5f5c4d9e6a570558 /arch/x86/xen
parentf5d36de069f4b343f64e858e7377cfc9c772c4fb (diff)
xen64: get active_mm from the pda
x86_64 stores the active_mm in the pda, so fetch it from there. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/mmu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index d0976b87cd2c..2579e70cdd08 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -805,8 +805,15 @@ void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
805static void drop_other_mm_ref(void *info) 805static void drop_other_mm_ref(void *info)
806{ 806{
807 struct mm_struct *mm = info; 807 struct mm_struct *mm = info;
808 struct mm_struct *active_mm;
808 809
809 if (__get_cpu_var(cpu_tlbstate).active_mm == mm) 810#ifdef CONFIG_X86_64
811 active_mm = read_pda(active_mm);
812#else
813 active_mm = __get_cpu_var(cpu_tlbstate).active_mm;
814#endif
815
816 if (active_mm == mm)
810 leave_mm(smp_processor_id()); 817 leave_mm(smp_processor_id());
811 818
812 /* If this cpu still has a stale cr3 reference, then make sure 819 /* If this cpu still has a stale cr3 reference, then make sure