diff options
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r-- | include/asm-blackfin/bitops.h | 5 | ||||
-rw-r--r-- | include/asm-blackfin/ide.h | 1 | ||||
-rw-r--r-- | include/asm-blackfin/processor.h | 4 | ||||
-rw-r--r-- | include/asm-blackfin/system.h | 4 | ||||
-rw-r--r-- | include/asm-blackfin/tlbflush.h | 6 |
5 files changed, 8 insertions, 12 deletions
diff --git a/include/asm-blackfin/bitops.h b/include/asm-blackfin/bitops.h index 27c2d0e48e1b..b39a175c79c1 100644 --- a/include/asm-blackfin/bitops.h +++ b/include/asm-blackfin/bitops.h | |||
@@ -11,6 +11,10 @@ | |||
11 | 11 | ||
12 | #ifdef __KERNEL__ | 12 | #ifdef __KERNEL__ |
13 | 13 | ||
14 | #ifndef _LINUX_BITOPS_H | ||
15 | #error only <linux/bitops.h> can be included directly | ||
16 | #endif | ||
17 | |||
14 | #include <asm-generic/bitops/ffs.h> | 18 | #include <asm-generic/bitops/ffs.h> |
15 | #include <asm-generic/bitops/__ffs.h> | 19 | #include <asm-generic/bitops/__ffs.h> |
16 | #include <asm-generic/bitops/sched.h> | 20 | #include <asm-generic/bitops/sched.h> |
@@ -199,6 +203,7 @@ static __inline__ int __test_bit(int nr, const void *addr) | |||
199 | 203 | ||
200 | #include <asm-generic/bitops/find.h> | 204 | #include <asm-generic/bitops/find.h> |
201 | #include <asm-generic/bitops/hweight.h> | 205 | #include <asm-generic/bitops/hweight.h> |
206 | #include <asm-generic/bitops/lock.h> | ||
202 | 207 | ||
203 | #include <asm-generic/bitops/ext2-atomic.h> | 208 | #include <asm-generic/bitops/ext2-atomic.h> |
204 | #include <asm-generic/bitops/ext2-non-atomic.h> | 209 | #include <asm-generic/bitops/ext2-non-atomic.h> |
diff --git a/include/asm-blackfin/ide.h b/include/asm-blackfin/ide.h index 41b2db46a168..121e272581d6 100644 --- a/include/asm-blackfin/ide.h +++ b/include/asm-blackfin/ide.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #define MAX_HWIFS 1 | 20 | #define MAX_HWIFS 1 |
21 | 21 | ||
22 | /* Legacy ... BLK_DEV_IDECS */ | 22 | /* Legacy ... BLK_DEV_IDECS */ |
23 | #define IDE_ARCH_OBSOLETE_INIT | ||
24 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ | 23 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ |
25 | 24 | ||
26 | 25 | ||
diff --git a/include/asm-blackfin/processor.h b/include/asm-blackfin/processor.h index 6bb3e0d4705d..c571e958558c 100644 --- a/include/asm-blackfin/processor.h +++ b/include/asm-blackfin/processor.h | |||
@@ -104,13 +104,13 @@ unsigned long get_wchan(struct task_struct *p); | |||
104 | #define cpu_relax() barrier() | 104 | #define cpu_relax() barrier() |
105 | 105 | ||
106 | /* Get the Silicon Revision of the chip */ | 106 | /* Get the Silicon Revision of the chip */ |
107 | static inline __attribute_pure__ uint32_t bfin_revid(void) | 107 | static inline uint32_t __pure bfin_revid(void) |
108 | { | 108 | { |
109 | /* stored in the upper 4 bits */ | 109 | /* stored in the upper 4 bits */ |
110 | return bfin_read_CHIPID() >> 28; | 110 | return bfin_read_CHIPID() >> 28; |
111 | } | 111 | } |
112 | 112 | ||
113 | static inline __attribute_pure__ uint32_t bfin_compiled_revid(void) | 113 | static inline uint32_t __pure bfin_compiled_revid(void) |
114 | { | 114 | { |
115 | #if defined(CONFIG_BF_REV_0_0) | 115 | #if defined(CONFIG_BF_REV_0_0) |
116 | return 0; | 116 | return 0; |
diff --git a/include/asm-blackfin/system.h b/include/asm-blackfin/system.h index 2b3d47d0bbb6..4a927379ee1c 100644 --- a/include/asm-blackfin/system.h +++ b/include/asm-blackfin/system.h | |||
@@ -128,9 +128,7 @@ extern unsigned long irq_flags; | |||
128 | #define mb() asm volatile ("" : : :"memory") | 128 | #define mb() asm volatile ("" : : :"memory") |
129 | #define rmb() asm volatile ("" : : :"memory") | 129 | #define rmb() asm volatile ("" : : :"memory") |
130 | #define wmb() asm volatile ("" : : :"memory") | 130 | #define wmb() asm volatile ("" : : :"memory") |
131 | #define set_rmb(var, value) do { (void) xchg(&var, value); } while (0) | 131 | #define set_mb(var, value) do { (void) xchg(&var, value); } while (0) |
132 | #define set_mb(var, value) set_rmb(var, value) | ||
133 | #define set_wmb(var, value) do { var = value; wmb(); } while (0) | ||
134 | 132 | ||
135 | #define read_barrier_depends() do { } while(0) | 133 | #define read_barrier_depends() do { } while(0) |
136 | 134 | ||
diff --git a/include/asm-blackfin/tlbflush.h b/include/asm-blackfin/tlbflush.h index 10a07ba1e011..277b400924b8 100644 --- a/include/asm-blackfin/tlbflush.h +++ b/include/asm-blackfin/tlbflush.h | |||
@@ -53,10 +53,4 @@ static inline void flush_tlb_kernel_page(unsigned long addr) | |||
53 | BUG(); | 53 | BUG(); |
54 | } | 54 | } |
55 | 55 | ||
56 | static inline void flush_tlb_pgtables(struct mm_struct *mm, | ||
57 | unsigned long start, unsigned long end) | ||
58 | { | ||
59 | BUG(); | ||
60 | } | ||
61 | |||
62 | #endif | 56 | #endif |