blob: 190e18913cc6968213cb468b07963db26f965ebd [file] [log] [blame]
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07001#ifndef _SPARC64_TLB_H
2#define _SPARC64_TLB_H
3
4#include <linux/swap.h>
5#include <linux/pagemap.h>
6#include <asm/pgalloc.h>
7#include <asm/tlbflush.h>
8#include <asm/mmu_context.h>
9
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070010#ifdef CONFIG_SMP
11extern void smp_flush_tlb_pending(struct mm_struct *,
12 unsigned long, unsigned long *);
13#endif
14
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070015#ifdef CONFIG_SMP
16extern void smp_flush_tlb_mm(struct mm_struct *mm);
17#define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm)
18#else
19#define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT)
20#endif
21
Peter Zijlstra90f08e32011-05-24 17:11:50 -070022extern void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *);
23extern void flush_tlb_pending(void);
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070024
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070025#define tlb_start_vma(tlb, vma) do { } while (0)
26#define tlb_end_vma(tlb, vma) do { } while (0)
Peter Zijlstra90f08e32011-05-24 17:11:50 -070027#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
28#define tlb_flush(tlb) flush_tlb_pending()
29
30#include <asm-generic/tlb.h>
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070031
32#endif /* _SPARC64_TLB_H */