Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234807
b: refs/heads/master
c: 7064d86
h: refs/heads/master
i:
  234805: 26978cb
  234803: a08bab3
  234799: 3338018
v: v3
  • Loading branch information
Shaohua Li authored and Ingo Molnar committed Feb 14, 2011
1 parent 8ed02a0 commit 036213a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70e4a369733a21e3d16b059a6ccdad22a344bf57
refs/heads/master: 7064d865af804b9b841e7b9a3e9b653e40c3e5ca
11 changes: 4 additions & 7 deletions trunk/arch/x86/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,8 @@ static void flush_tlb_others_ipi(const struct cpumask *cpumask,
sender = this_cpu_read(tlb_vector_offset);
f = &flush_state[sender];

/*
* Could avoid this lock when
* num_online_cpus() <= NUM_INVALIDATE_TLB_VECTORS, but it is
* probably not worth checking this for a cache-hot lock.
*/
raw_spin_lock(&f->tlbstate_lock);
if (nr_cpu_ids > NUM_INVALIDATE_TLB_VECTORS)
raw_spin_lock(&f->tlbstate_lock);

f->flush_mm = mm;
f->flush_va = va;
Expand All @@ -202,7 +198,8 @@ static void flush_tlb_others_ipi(const struct cpumask *cpumask,

f->flush_mm = NULL;
f->flush_va = 0;
raw_spin_unlock(&f->tlbstate_lock);
if (nr_cpu_ids > NUM_INVALIDATE_TLB_VECTORS)
raw_spin_unlock(&f->tlbstate_lock);
}

void native_flush_tlb_others(const struct cpumask *cpumask,
Expand Down

0 comments on commit 036213a

Please sign in to comment.