Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156985
b: refs/heads/master
c: b04e637
h: refs/heads/master
i:
  156983: c85ce95
v: v3
  • Loading branch information
Linus Torvalds committed Aug 21, 2009
1 parent a7da443 commit edb8e08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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: f4b0373b26567cafd421d91101852ed7a34e9e94
refs/heads/master: b04e6373d694e977c95ae0ae000e2c1e2cf92d73
21 changes: 10 additions & 11 deletions trunk/arch/x86/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,17 @@ static void flush_tlb_others_ipi(const struct cpumask *cpumask,

f->flush_mm = mm;
f->flush_va = va;
cpumask_andnot(to_cpumask(f->flush_cpumask),
cpumask, cpumask_of(smp_processor_id()));

/*
* We have to send the IPI only to
* CPUs affected.
*/
apic->send_IPI_mask(to_cpumask(f->flush_cpumask),
INVALIDATE_TLB_VECTOR_START + sender);
if (cpumask_andnot(to_cpumask(f->flush_cpumask), cpumask, cpumask_of(smp_processor_id()))) {
/*
* We have to send the IPI only to
* CPUs affected.
*/
apic->send_IPI_mask(to_cpumask(f->flush_cpumask),
INVALIDATE_TLB_VECTOR_START + sender);

while (!cpumask_empty(to_cpumask(f->flush_cpumask)))
cpu_relax();
while (!cpumask_empty(to_cpumask(f->flush_cpumask)))
cpu_relax();
}

f->flush_mm = NULL;
f->flush_va = 0;
Expand Down

0 comments on commit edb8e08

Please sign in to comment.