diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-02-10 01:26:32 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-02-10 01:26:32 -0500 |
commit | b22364c8eec89e6b0c081a237f3b6348df87796f (patch) | |
tree | 233a923281fb640106465d076997ff511efb6edf /include/asm-arm/processor.h | |
parent | 2c8dc071517ec2843869024dc82be2e246f41064 (diff) | |
parent | 66efc5a7e3061c3597ac43a8bb1026488d57e66b (diff) |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/asm-arm/processor.h')
-rw-r--r-- | include/asm-arm/processor.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h index b442e8e2a809..1bbf16182d62 100644 --- a/include/asm-arm/processor.h +++ b/include/asm-arm/processor.h | |||
@@ -103,14 +103,14 @@ extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | |||
103 | #if __LINUX_ARM_ARCH__ >= 5 | 103 | #if __LINUX_ARM_ARCH__ >= 5 |
104 | 104 | ||
105 | #define ARCH_HAS_PREFETCH | 105 | #define ARCH_HAS_PREFETCH |
106 | #define prefetch(ptr) \ | 106 | static inline void prefetch(const void *ptr) |
107 | ({ \ | 107 | { |
108 | __asm__ __volatile__( \ | 108 | __asm__ __volatile__( |
109 | "pld\t%0" \ | 109 | "pld\t%0" |
110 | : \ | 110 | : |
111 | : "o" (*(char *)(ptr)) \ | 111 | : "o" (*(char *)ptr) |
112 | : "cc"); \ | 112 | : "cc"); |
113 | }) | 113 | } |
114 | 114 | ||
115 | #define ARCH_HAS_PREFETCHW | 115 | #define ARCH_HAS_PREFETCHW |
116 | #define prefetchw(ptr) prefetch(ptr) | 116 | #define prefetchw(ptr) prefetch(ptr) |