summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-04-22 22:46:06 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-04-22 22:46:06 +0000
commitc4ca763cc6ffd1ffef022766dde60487e42f17ae (patch)
tree7a0763cfa469e44e6f6b809bc2e67bf84a30c3e9 /include
parentdc91613ed65a1549d9ca21bf489c3f55f34f2dd6 (diff)
First cut at intercpu tlb flushing.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips64/mmu_context.h2
-rw-r--r--include/asm-mips64/pgalloc.h14
2 files changed, 15 insertions, 1 deletions
diff --git a/include/asm-mips64/mmu_context.h b/include/asm-mips64/mmu_context.h
index 30ee6a9d4..578c782d6 100644
--- a/include/asm-mips64/mmu_context.h
+++ b/include/asm-mips64/mmu_context.h
@@ -44,7 +44,7 @@ get_new_cpu_mmu_context(struct mm_struct *mm, unsigned long cpu)
unsigned long asid = ASID_CACHE(cpu);
if (! ((asid += ASID_INC) & ASID_MASK) ) {
- flush_tlb_all(); /* start new asid cycle */
+ _flush_tlb_all(); /* start new asid cycle */
if (!asid) /* fix version if needed */
asid = ASID_FIRST_VERSION;
}
diff --git a/include/asm-mips64/pgalloc.h b/include/asm-mips64/pgalloc.h
index f619b0661..24f7c3a3f 100644
--- a/include/asm-mips64/pgalloc.h
+++ b/include/asm-mips64/pgalloc.h
@@ -10,12 +10,15 @@
#ifndef _ASM_PGALLOC_H
#define _ASM_PGALLOC_H
+#include <linux/config.h>
+
/* TLB flushing:
*
* - flush_tlb_all() flushes all processes TLB entries
* - flush_tlb_mm(mm) flushes the specified mm context TLB entries
* - flush_tlb_page(mm, vmaddr) flushes a single page
* - flush_tlb_range(mm, start, end) flushes a range of pages
+ * - flush_tlb_pgtables(mm, start, end) flushes a range of page tables
*/
extern void (*_flush_tlb_all)(void);
extern void (*_flush_tlb_mm)(struct mm_struct *mm);
@@ -23,11 +26,22 @@ extern void (*_flush_tlb_range)(struct mm_struct *mm, unsigned long start,
unsigned long end);
extern void (*_flush_tlb_page)(struct vm_area_struct *vma, unsigned long page);
+#ifndef CONFIG_SMP
+
#define flush_tlb_all() _flush_tlb_all()
#define flush_tlb_mm(mm) _flush_tlb_mm(mm)
#define flush_tlb_range(mm,vmaddr,end) _flush_tlb_range(mm, vmaddr, end)
#define flush_tlb_page(vma,page) _flush_tlb_page(vma, page)
+#else /* CONFIG_SMP */
+
+extern void flush_tlb_all(void);
+extern void flush_tlb_mm(struct mm_struct *);
+extern void flush_tlb_range(struct mm_struct *, unsigned long, unsigned long);
+extern void flush_tlb_page(struct vm_area_struct *, unsigned long);
+
+#endif /* CONFIG_SMP */
+
extern inline void flush_tlb_pgtables(struct mm_struct *mm,
unsigned long start, unsigned long end)
{