[MIPS] Shrink Qemu configuration to the bare minimum that is need and tested.
[powerpc.git] / arch / powerpc / mm / tlb_64.c
index 53e31b8..bb3afb6 100644 (file)
@@ -95,7 +95,7 @@ static void pte_free_submit(struct pte_freelist_batch *batch)
 
 void pgtable_free_tlb(struct mmu_gather *tlb, pgtable_free_t pgf)
 {
-       /* This is safe as we are holding page_table_lock */
+       /* This is safe since tlb_gather_mmu has disabled preemption */
         cpumask_t local_cpumask = cpumask_of_cpu(smp_processor_id());
        struct pte_freelist_batch **batchp = &__get_cpu_var(pte_freelist_cur);
 
@@ -168,7 +168,7 @@ void hpte_update(struct mm_struct *mm, unsigned long addr,
                batch->mm = mm;
                batch->psize = psize;
        }
-       if (addr < KERNELBASE) {
+       if (!is_kernel_addr(addr)) {
                vsid = get_vsid(mm->context.id, addr);
                WARN_ON(vsid == 0);
        } else
@@ -206,7 +206,7 @@ void __flush_tlb_pending(struct ppc64_tlb_batch *batch)
 
 void pte_free_finish(void)
 {
-       /* This is safe as we are holding page_table_lock */
+       /* This is safe since tlb_gather_mmu has disabled preemption */
        struct pte_freelist_batch **batchp = &__get_cpu_var(pte_freelist_cur);
 
        if (*batchp == NULL)