xtensa: fix prefetch in the raw_copy_to_user
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 4 Apr 2017 20:26:29 +0000 (13:26 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 4 Apr 2017 20:53:13 +0000 (16:53 -0400)
'from' is the input buffer, it should be prefetched with prefetch, not
prefetchw.

Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/xtensa/include/asm/uaccess.h

index 8e93ed8ad1fe31131eb9b9b512b84f1964c85e8a..2e7bac0d4b2cbd58fc3f7749ed2fc4b45920db9f 100644 (file)
@@ -245,7 +245,7 @@ raw_copy_from_user(void *to, const void __user *from, unsigned long n)
 static inline unsigned long
 raw_copy_to_user(void __user *to, const void *from, unsigned long n)
 {
-       prefetchw(from);
+       prefetch(from);
        return __xtensa_copy_user((__force void *)to, from, n);
 }
 #define INLINE_COPY_FROM_USER