[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Use machine vector for global tlb purge



# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1166205573 25200
# Node ID 1e042dde1a5f2a56ed6517e00ac83d44f324a652
# Parent  5a68672cee38a3ee15e34fcd3a5f91224a81bea2
[IA64] Use machine vector for global tlb purge

Switch to using the platform vector for global tlb purges. In fact
nothing should be calling ia64_global_tlb_purge() directly.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>
---
 xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c |    2 +-
 xen/arch/ia64/xen/vhpt.c                    |    8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff -r 5a68672cee38 -r 1e042dde1a5f xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c
--- a/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c       Thu Dec 14 13:29:17 
2006 -0700
+++ b/xen/arch/ia64/linux-xen/sn/kernel/sn2_smp.c       Fri Dec 15 10:59:33 
2006 -0700
@@ -173,7 +173,7 @@ sn2_global_tlb_purge(unsigned long start
        int mymm = (mm == current->active_mm && mm == current->mm);
 #else
        // struct mm_struct *mm;
-       int mymm = 1;
+       int mymm = 0;
 #endif
        int use_cpu_ptcga;
        volatile unsigned long *ptc0, *ptc1;
diff -r 5a68672cee38 -r 1e042dde1a5f xen/arch/ia64/xen/vhpt.c
--- a/xen/arch/ia64/xen/vhpt.c  Thu Dec 14 13:29:17 2006 -0700
+++ b/xen/arch/ia64/xen/vhpt.c  Fri Dec 15 10:59:33 2006 -0700
@@ -20,9 +20,6 @@
 #include <asm/vcpu.h>
 #include <asm/vcpumask.h>
 #include <asm/vmmu.h>
-
-/* Defined in tlb.c  */
-extern void ia64_global_tlb_purge(u64 start, u64 end, u64 nbits);
 
 extern long running_on_sim;
 
@@ -364,7 +361,7 @@ void domain_flush_vtlb_range (struct dom
        // ptc.ga has release semantics.
 
        /* ptc.ga  */
-       ia64_global_tlb_purge(vadr,vadr+addr_range,PAGE_SHIFT);
+       platform_global_tlb_purge(vadr, vadr + addr_range, PAGE_SHIFT);
        perfc_incrc(domain_flush_vtlb_range);
 }
 
@@ -442,7 +439,8 @@ __domain_flush_vtlb_track_entry(struct d
                perfc_incrc(domain_flush_vtlb_local);
        } else {
                /* ptc.ga has release semantics. */
-               ia64_global_tlb_purge(vaddr, vaddr + PAGE_SIZE, PAGE_SHIFT);
+               platform_global_tlb_purge(vaddr, vaddr + PAGE_SIZE,
+                                         PAGE_SHIFT);
                perfc_incrc(domain_flush_vtlb_global);
        }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.