summaryrefslogtreecommitdiff
path: root/include/asm-generic/tlb.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-09 23:25:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-09 23:25:57 -0700
commitfa8f2c5000cafcaa87182c5f2c021ae1ae52299c (patch)
treebd478a07d90971bc9bb2a05e96d0f1f0ed0327d8 /include/asm-generic/tlb.h
parent1ec430966896297cd850a36f1ac082a79de30eca (diff)
[PATCH] Reduce TLB flushing during process migration
From: Martin Hicks <mort@wildopensource.com> Another optimization patch from Jack Steiner, intended to reduce TLB flushes during process migration. Most architextures should define tlb_migrate_prepare() to be flush_tlb_mm(), but on i386, it would be a wasted flush, because i386 disconnects previous cpus from the tlb flush automatically.
Diffstat (limited to 'include/asm-generic/tlb.h')
-rw-r--r--include/asm-generic/tlb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h
index 1358c5136889..69c11ff2e984 100644
--- a/include/asm-generic/tlb.h
+++ b/include/asm-generic/tlb.h
@@ -146,4 +146,6 @@ static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page)
__pmd_free_tlb(tlb, pmdp); \
} while (0)
+#define tlb_migrate_prepare(mm) do { } while(0)
+
#endif /* _ASM_GENERIC__TLB_H */