Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57288
b: refs/heads/master
c: 6ad8d01
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jun 2, 2007
1 parent 68f49f6 commit dc9e565
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 988519acb3dbe7168276a36cbb8fd91fddbffaee
refs/heads/master: 6ad8d010b2f364b739020e514e61b6a73444464b
9 changes: 9 additions & 0 deletions trunk/include/asm-powerpc/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ extern void pte_free_finish(void);

static inline void tlb_flush(struct mmu_gather *tlb)
{
struct ppc64_tlb_batch *tlbbatch = &__get_cpu_var(ppc64_tlb_batch);

/* If there's a TLB batch pending, then we must flush it because the
* pages are going to be freed and we really don't want to have a CPU
* access a freed page because it has a stale TLB
*/
if (tlbbatch->index)
__flush_tlb_pending(tlbbatch);

pte_free_finish();
}

Expand Down

0 comments on commit dc9e565

Please sign in to comment.