x86: avoid name conflict for Voyager leave_mm
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 30 Jan 2008 12:32:55 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:55 +0000 (13:32 +0100)
Avoid a conflict between Voyager's leave_mm and asm-x86/mmu.h's leave_mm.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mach-voyager/voyager_smp.c

index 7517772418818c0e5968b6d99e3aad3c94d4d070..dffa786f61fe1b17c2a3a4b2e00f07d7e3a8bc2f 100644 (file)
@@ -808,7 +808,7 @@ static DEFINE_SPINLOCK(tlbstate_lock);
  * We need to reload %cr3 since the page tables may be going
  * away from under us..
  */
-static inline void leave_mm(unsigned long cpu)
+static inline void voyager_leave_mm(unsigned long cpu)
 {
        if (per_cpu(cpu_tlbstate, cpu).state == TLBSTATE_OK)
                BUG();
@@ -838,7 +838,7 @@ static void smp_invalidate_interrupt(void)
                        else
                                __flush_tlb_one(flush_va);
                } else
-                       leave_mm(cpu);
+                       voyager_leave_mm(cpu);
        }
        smp_mb__before_clear_bit();
        clear_bit(cpu, &smp_invalidate_needed);
@@ -919,7 +919,7 @@ void flush_tlb_mm(struct mm_struct *mm)
                if (current->mm)
                        local_flush_tlb();
                else
-                       leave_mm(smp_processor_id());
+                       voyager_leave_mm(smp_processor_id());
        }
        if (cpu_mask)
                voyager_flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL);
@@ -939,7 +939,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long va)
                if (current->mm)
                        __flush_tlb_one(va);
                else
-                       leave_mm(smp_processor_id());
+                       voyager_leave_mm(smp_processor_id());
        }
 
        if (cpu_mask)
@@ -1155,7 +1155,7 @@ static void do_flush_tlb_all(void *info)
 
        __flush_tlb_all();
        if (per_cpu(cpu_tlbstate, cpu).state == TLBSTATE_LAZY)
-               leave_mm(cpu);
+               voyager_leave_mm(cpu);
 }
 
 /* flush the TLB of every active CPU in the system */