]> Pileus Git - ~andy/linux/blobdiff - arch/parisc/kernel/cache.c
parisc: use spin_lock_irqsave/spin_unlock_irqrestore for PTE updates
[~andy/linux] / arch / parisc / kernel / cache.c
index 4b12890642eb84289abd01772a5ee9121616aeec..83ded26cad065af6cda1d1dc725dec381e48a669 100644 (file)
@@ -421,14 +421,11 @@ void purge_tlb_entries(struct mm_struct *mm, unsigned long addr)
        /* Note: purge_tlb_entries can be called at startup with
           no context.  */
 
-       /* Disable preemption while we play with %sr1.  */
-       preempt_disable();
-       mtsp(mm->context, 1);
        purge_tlb_start(flags);
+       mtsp(mm->context, 1);
        pdtlb(addr);
        pitlb(addr);
        purge_tlb_end(flags);
-       preempt_enable();
 }
 EXPORT_SYMBOL(purge_tlb_entries);