ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-ppc64 / tlb.h
1 /*
2  *      TLB shootdown specifics for PPC64
3  *
4  * Copyright (C) 2002 Anton Blanchard, IBM Corp.
5  * Copyright (C) 2002 Paul Mackerras, IBM Corp.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version
10  * 2 of the License, or (at your option) any later version.
11  */
12 #ifndef _PPC64_TLB_H
13 #define _PPC64_TLB_H
14
15 #include <asm/tlbflush.h>
16
17 struct mmu_gather;
18 static inline void tlb_flush(struct mmu_gather *tlb);
19
20 /* Avoid pulling in another include just for this */
21 #define check_pgt_cache()       do { } while (0)
22
23 /* Get the generic bits... */
24 #include <asm-generic/tlb.h>
25
26 /* Nothing needed here in fact... */
27 #define tlb_start_vma(tlb, vma) do { } while (0)
28 #define tlb_end_vma(tlb, vma)   do { } while (0)
29
30 #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
31
32 extern void pte_free_finish(void);
33
34 static inline void tlb_flush(struct mmu_gather *tlb)
35 {
36         flush_tlb_pending();
37         pte_free_finish();
38 }
39
40 #endif /* _PPC64_TLB_H */