|
@@ -256,7 +256,6 @@ static cpumask_t flush_cpumask;
|
|
|
static struct mm_struct * flush_mm;
|
|
|
static unsigned long flush_va;
|
|
|
static DEFINE_SPINLOCK(tlbstate_lock);
|
|
|
-#define FLUSH_ALL 0xffffffff
|
|
|
|
|
|
/*
|
|
|
* We cannot call mmdrop() because we are in interrupt context,
|
|
@@ -338,7 +337,7 @@ fastcall void smp_invalidate_interrupt(struct pt_regs *regs)
|
|
|
|
|
|
if (flush_mm == per_cpu(cpu_tlbstate, cpu).active_mm) {
|
|
|
if (per_cpu(cpu_tlbstate, cpu).state == TLBSTATE_OK) {
|
|
|
- if (flush_va == FLUSH_ALL)
|
|
|
+ if (flush_va == TLB_FLUSH_ALL)
|
|
|
local_flush_tlb();
|
|
|
else
|
|
|
__flush_tlb_one(flush_va);
|
|
@@ -353,9 +352,11 @@ out:
|
|
|
put_cpu_no_resched();
|
|
|
}
|
|
|
|
|
|
-static void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm,
|
|
|
- unsigned long va)
|
|
|
+void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm,
|
|
|
+ unsigned long va)
|
|
|
{
|
|
|
+ cpumask_t cpumask = *cpumaskp;
|
|
|
+
|
|
|
/*
|
|
|
* A couple of (to be removed) sanity checks:
|
|
|
*
|
|
@@ -417,7 +418,7 @@ void flush_tlb_current_task(void)
|
|
|
|
|
|
local_flush_tlb();
|
|
|
if (!cpus_empty(cpu_mask))
|
|
|
- flush_tlb_others(cpu_mask, mm, FLUSH_ALL);
|
|
|
+ flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL);
|
|
|
preempt_enable();
|
|
|
}
|
|
|
|
|
@@ -436,7 +437,7 @@ void flush_tlb_mm (struct mm_struct * mm)
|
|
|
leave_mm(smp_processor_id());
|
|
|
}
|
|
|
if (!cpus_empty(cpu_mask))
|
|
|
- flush_tlb_others(cpu_mask, mm, FLUSH_ALL);
|
|
|
+ flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL);
|
|
|
|
|
|
preempt_enable();
|
|
|
}
|