1
0
Fork 0

[SPARC64]: Don't open-code {get,put}_cpu_var() in flush_tlb_pending().

Noticed by Andrew Morton.

Signed-off-by: David S. Miller <davem@davemloft.net>
wifi-calibration
David S. Miller 2008-03-27 16:51:44 -07:00
parent af8be4e4b3
commit 76cc86ee6b
1 changed files with 2 additions and 5 deletions

View File

@ -23,11 +23,8 @@ DEFINE_PER_CPU(struct mmu_gather, mmu_gathers) = { 0, };
void flush_tlb_pending(void)
{
struct mmu_gather *mp;
struct mmu_gather *mp = &get_cpu_var(mmu_gathers);
preempt_disable();
mp = &__get_cpu_var(mmu_gathers);
if (mp->tlb_nr) {
flush_tsb_user(mp);
@ -43,7 +40,7 @@ void flush_tlb_pending(void)
mp->tlb_nr = 0;
}
preempt_enable();
put_cpu_var(mmu_gathers);
}
void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep, pte_t orig)