Commit 196e44a4 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: only calculate local when we need it, from paulus

parent 0dafdcbd
...@@ -54,16 +54,17 @@ static inline void __tlb_remove_tlb_entry(mmu_gather_t *tlb, pte_t *ptep, ...@@ -54,16 +54,17 @@ static inline void __tlb_remove_tlb_entry(mmu_gather_t *tlb, pte_t *ptep,
if (pte_val(*ptep) & _PAGE_HASHPTE) { if (pte_val(*ptep) & _PAGE_HASHPTE) {
pte = __pte(pte_update(ptep, _PAGE_HPTEFLAGS, 0)); pte = __pte(pte_update(ptep, _PAGE_HPTEFLAGS, 0));
if (pte_val(pte) & _PAGE_HASHPTE) { if (pte_val(pte) & _PAGE_HASHPTE) {
int local = 0;
if (tlb->mm->cpu_vm_mask == (1 << cpu))
local = 1;
batch->pte[i] = pte; batch->pte[i] = pte;
batch->addr[i] = address; batch->addr[i] = address;
i++; i++;
if (i == PPC64_TLB_BATCH_NR) { if (i == PPC64_TLB_BATCH_NR) {
int local = 0;
if (tlb->mm->cpu_vm_mask == (1 << cpu))
local = 1;
flush_hash_range(tlb->mm->context, i, local); flush_hash_range(tlb->mm->context, i, local);
i = 0; i = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment