diff options
Diffstat (limited to 'meta/packages/linux/linux-omap2-git/fixes.patch')
| -rw-r--r-- | meta/packages/linux/linux-omap2-git/fixes.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-omap2-git/fixes.patch b/meta/packages/linux/linux-omap2-git/fixes.patch new file mode 100644 index 0000000000..8478682787 --- /dev/null +++ b/meta/packages/linux/linux-omap2-git/fixes.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: git/include/asm-arm/processor.h | ||
| 2 | =================================================================== | ||
| 3 | --- git.orig/include/asm-arm/processor.h 2008-08-03 11:27:02.000000000 +0100 | ||
| 4 | +++ git/include/asm-arm/processor.h 2008-08-03 11:53:22.000000000 +0100 | ||
| 5 | @@ -109,14 +109,16 @@ | ||
| 6 | #if __LINUX_ARM_ARCH__ >= 5 | ||
| 7 | |||
| 8 | #define ARCH_HAS_PREFETCH | ||
| 9 | -static inline void prefetch(const void *ptr) | ||
| 10 | +#define prefetch(ptr) __builtin_prefetch(ptr) | ||
| 11 | + | ||
| 12 | +/*static inline void prefetch(const void *ptr) | ||
| 13 | { | ||
| 14 | __asm__ __volatile__( | ||
| 15 | - "pld\t%0" | ||
| 16 | + "pld\ta%0" | ||
| 17 | : | ||
| 18 | - : "o" (*(char *)ptr) | ||
| 19 | + : "p" (ptr) | ||
| 20 | : "cc"); | ||
| 21 | -} | ||
| 22 | +}*/ | ||
| 23 | |||
| 24 | #define ARCH_HAS_PREFETCHW | ||
| 25 | #define prefetchw(ptr) prefetch(ptr) | ||
