diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/bitops.h | 4 | ||||
-rw-r--r-- | include/asm-powerpc/ide.h | 3 | ||||
-rw-r--r-- | include/asm-powerpc/iommu.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/mmu_context.h | 2 | ||||
-rw-r--r-- | include/asm-powerpc/tlbflush.h | 11 |
5 files changed, 7 insertions, 15 deletions
diff --git a/include/asm-powerpc/bitops.h b/include/asm-powerpc/bitops.h index e85c3e078ba2..733b4af7f4f1 100644 --- a/include/asm-powerpc/bitops.h +++ b/include/asm-powerpc/bitops.h | |||
@@ -38,6 +38,10 @@ | |||
38 | 38 | ||
39 | #ifdef __KERNEL__ | 39 | #ifdef __KERNEL__ |
40 | 40 | ||
41 | #ifndef _LINUX_BITOPS_H | ||
42 | #error only <linux/bitops.h> can be included directly | ||
43 | #endif | ||
44 | |||
41 | #include <linux/compiler.h> | 45 | #include <linux/compiler.h> |
42 | #include <asm/asm-compat.h> | 46 | #include <asm/asm-compat.h> |
43 | #include <asm/synch.h> | 47 | #include <asm/synch.h> |
diff --git a/include/asm-powerpc/ide.h b/include/asm-powerpc/ide.h index 1644e44c8757..fd7f5a430f0a 100644 --- a/include/asm-powerpc/ide.h +++ b/include/asm-powerpc/ide.h | |||
@@ -69,12 +69,11 @@ static __inline__ unsigned long ide_default_io_base(int index) | |||
69 | 69 | ||
70 | #ifdef CONFIG_BLK_DEV_MPC8xx_IDE | 70 | #ifdef CONFIG_BLK_DEV_MPC8xx_IDE |
71 | #define IDE_ARCH_ACK_INTR 1 | 71 | #define IDE_ARCH_ACK_INTR 1 |
72 | #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) | 72 | #define ide_ack_intr(hwif) ((hwif)->ack_intr ? (hwif)->ack_intr(hwif) : 1) |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #endif /* __powerpc64__ */ | 75 | #endif /* __powerpc64__ */ |
76 | 76 | ||
77 | #define IDE_ARCH_OBSOLETE_INIT | ||
78 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ | 77 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ |
79 | 78 | ||
80 | #endif /* __KERNEL__ */ | 79 | #endif /* __KERNEL__ */ |
diff --git a/include/asm-powerpc/iommu.h b/include/asm-powerpc/iommu.h index 870967e47204..4a82fdccee92 100644 --- a/include/asm-powerpc/iommu.h +++ b/include/asm-powerpc/iommu.h | |||
@@ -26,9 +26,9 @@ | |||
26 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> |
27 | #include <linux/device.h> | 27 | #include <linux/device.h> |
28 | #include <linux/dma-mapping.h> | 28 | #include <linux/dma-mapping.h> |
29 | #include <linux/bitops.h> | ||
29 | #include <asm/machdep.h> | 30 | #include <asm/machdep.h> |
30 | #include <asm/types.h> | 31 | #include <asm/types.h> |
31 | #include <asm/bitops.h> | ||
32 | 32 | ||
33 | #define IOMMU_PAGE_SHIFT 12 | 33 | #define IOMMU_PAGE_SHIFT 12 |
34 | #define IOMMU_PAGE_SIZE (ASM_CONST(1) << IOMMU_PAGE_SHIFT) | 34 | #define IOMMU_PAGE_SIZE (ASM_CONST(1) << IOMMU_PAGE_SHIFT) |
diff --git a/include/asm-powerpc/mmu_context.h b/include/asm-powerpc/mmu_context.h index f863ac21409e..9102b8bf0ead 100644 --- a/include/asm-powerpc/mmu_context.h +++ b/include/asm-powerpc/mmu_context.h | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | #ifndef CONFIG_PPC64 | 9 | #ifndef CONFIG_PPC64 |
10 | #include <asm/atomic.h> | 10 | #include <asm/atomic.h> |
11 | #include <asm/bitops.h> | 11 | #include <linux/bitops.h> |
12 | 12 | ||
13 | /* | 13 | /* |
14 | * On 32-bit PowerPC 6xx/7xx/7xxx CPUs, we use a set of 16 VSIDs | 14 | * On 32-bit PowerPC 6xx/7xx/7xxx CPUs, we use a set of 16 VSIDs |
diff --git a/include/asm-powerpc/tlbflush.h b/include/asm-powerpc/tlbflush.h index a022f806bb21..b6b036ccee34 100644 --- a/include/asm-powerpc/tlbflush.h +++ b/include/asm-powerpc/tlbflush.h | |||
@@ -8,7 +8,6 @@ | |||
8 | * - flush_tlb_page_nohash(vma, vmaddr) flushes one page if SW loaded TLB | 8 | * - flush_tlb_page_nohash(vma, vmaddr) flushes one page if SW loaded TLB |
9 | * - flush_tlb_range(vma, start, end) flushes a range of pages | 9 | * - flush_tlb_range(vma, start, end) flushes a range of pages |
10 | * - flush_tlb_kernel_range(start, end) flushes a range of kernel pages | 10 | * - flush_tlb_kernel_range(start, end) flushes a range of kernel pages |
11 | * - flush_tlb_pgtables(mm, start, end) flushes a range of page tables | ||
12 | * | 11 | * |
13 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
14 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
@@ -174,15 +173,5 @@ extern void __flush_hash_table_range(struct mm_struct *mm, unsigned long start, | |||
174 | */ | 173 | */ |
175 | extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t); | 174 | extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t); |
176 | 175 | ||
177 | /* | ||
178 | * This is called in munmap when we have freed up some page-table | ||
179 | * pages. We don't need to do anything here, there's nothing special | ||
180 | * about our page-table pages. -- paulus | ||
181 | */ | ||
182 | static inline void flush_tlb_pgtables(struct mm_struct *mm, | ||
183 | unsigned long start, unsigned long end) | ||
184 | { | ||
185 | } | ||
186 | |||
187 | #endif /*__KERNEL__ */ | 176 | #endif /*__KERNEL__ */ |
188 | #endif /* _ASM_POWERPC_TLBFLUSH_H */ | 177 | #endif /* _ASM_POWERPC_TLBFLUSH_H */ |