diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-08-14 22:15:19 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-09-01 22:26:22 +0400 |
commit | f817584ab5a319e2f6eb3173683ccf3e967a1b2a (patch) | |
tree | ada9cc9fa6f2d0c81aaa62362f91c35089c7b254 | |
parent | 1a3a555c6ddeba7470a890d2bf839bee19f297fc (diff) |
This reverts commit 9e13f189d8961a8f9c8befb4d2d693121fa1876c.
As the commit message says, "This test works with GCC under unit test but
not in the kernel build." And indeed, the aarch64 build fails with:
fs/inode.c: In function ‘new_inode’:
./arch/arm64/include/asm/processor.h:155:2: error: invalid 'asm': invalid operand
asm volatile("prfm pstl1keep, [%x0]\n" : : "p" (ptr));
Revert it, and wait for the proper prfm fix.
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rw-r--r-- | arch/arm64/include/asm/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 0be402d22cdb..3df21feeabdd 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -147,13 +147,13 @@ extern struct task_struct *cpu_switch_to(struct task_struct *prev, #define ARCH_HAS_PREFETCH static inline void prefetch(const void *ptr) { - asm volatile("prfm pldl1keep, [%x0]\n" : : "p" (ptr)); + asm volatile("prfm pldl1keep, %a0\n" : : "p" (ptr)); } #define ARCH_HAS_PREFETCHW static inline void prefetchw(const void *ptr) { - asm volatile("prfm pstl1keep, [%x0]\n" : : "p" (ptr)); + asm volatile("prfm pstl1keep, %a0\n" : : "p" (ptr)); } #define ARCH_HAS_SPINLOCK_PREFETCH |