瀏覽代碼

ARM: 7951/1: uaccess: use CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS

Now that we select HAVE_EFFICIENT_UNALIGNED_ACCESS for ARMv6+ CPUs,
replace the __LINUX_ARM_ARCH__ check in uaccess.h with the new symbol.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Nicolas Pitre 11 年之前
父節點
當前提交
afdd3bba3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/arm/include/asm/uaccess.h

+ 1 - 1
arch/arm/include/asm/uaccess.h

@@ -19,7 +19,7 @@
 #include <asm/unified.h>
 #include <asm/unified.h>
 #include <asm/compiler.h>
 #include <asm/compiler.h>
 
 
-#if __LINUX_ARM_ARCH__ < 6
+#ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
 #include <asm-generic/uaccess-unaligned.h>
 #include <asm-generic/uaccess-unaligned.h>
 #else
 #else
 #define __get_user_unaligned __get_user
 #define __get_user_unaligned __get_user