diff options
Diffstat (limited to 'arch/x86/mach-voyager')
-rw-r--r-- | arch/x86/mach-voyager/voyager_smp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c index 981def2b4e9b..b472a2df0b7f 100644 --- a/arch/x86/mach-voyager/voyager_smp.c +++ b/arch/x86/mach-voyager/voyager_smp.c | |||
@@ -800,7 +800,6 @@ static void smp_reschedule_interrupt(void) | |||
800 | static struct mm_struct *flush_mm; | 800 | static struct mm_struct *flush_mm; |
801 | static unsigned long flush_va; | 801 | static unsigned long flush_va; |
802 | static DEFINE_SPINLOCK(tlbstate_lock); | 802 | static DEFINE_SPINLOCK(tlbstate_lock); |
803 | #define FLUSH_ALL 0xffffffff | ||
804 | 803 | ||
805 | /* | 804 | /* |
806 | * We cannot call mmdrop() because we are in interrupt context, | 805 | * We cannot call mmdrop() because we are in interrupt context, |
@@ -834,7 +833,7 @@ static void smp_invalidate_interrupt(void) | |||
834 | 833 | ||
835 | if (flush_mm == per_cpu(cpu_tlbstate, cpu).active_mm) { | 834 | if (flush_mm == per_cpu(cpu_tlbstate, cpu).active_mm) { |
836 | if (per_cpu(cpu_tlbstate, cpu).state == TLBSTATE_OK) { | 835 | if (per_cpu(cpu_tlbstate, cpu).state == TLBSTATE_OK) { |
837 | if (flush_va == FLUSH_ALL) | 836 | if (flush_va == TLB_FLUSH_ALL) |
838 | local_flush_tlb(); | 837 | local_flush_tlb(); |
839 | else | 838 | else |
840 | __flush_tlb_one(flush_va); | 839 | __flush_tlb_one(flush_va); |
@@ -903,7 +902,7 @@ void flush_tlb_current_task(void) | |||
903 | cpu_mask = cpus_addr(mm->cpu_vm_mask)[0] & ~(1 << smp_processor_id()); | 902 | cpu_mask = cpus_addr(mm->cpu_vm_mask)[0] & ~(1 << smp_processor_id()); |
904 | local_flush_tlb(); | 903 | local_flush_tlb(); |
905 | if (cpu_mask) | 904 | if (cpu_mask) |
906 | voyager_flush_tlb_others(cpu_mask, mm, FLUSH_ALL); | 905 | voyager_flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL); |
907 | 906 | ||
908 | preempt_enable(); | 907 | preempt_enable(); |
909 | } | 908 | } |
@@ -923,7 +922,7 @@ void flush_tlb_mm(struct mm_struct *mm) | |||
923 | leave_mm(smp_processor_id()); | 922 | leave_mm(smp_processor_id()); |
924 | } | 923 | } |
925 | if (cpu_mask) | 924 | if (cpu_mask) |
926 | voyager_flush_tlb_others(cpu_mask, mm, FLUSH_ALL); | 925 | voyager_flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL); |
927 | 926 | ||
928 | preempt_enable(); | 927 | preempt_enable(); |
929 | } | 928 | } |