瀏覽代碼

[ARM SMP] Only enable V6K instructions on V6 MP core CPUs

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 20 年之前
父節點
當前提交
3c4ee4e252
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      arch/arm/lib/bitops.h

+ 3 - 1
arch/arm/lib/bitops.h

@@ -1,4 +1,6 @@
-#if __LINUX_ARM_ARCH__ >= 6
+#include <linux/config.h>
+
+#if __LINUX_ARM_ARCH__ >= 6 && defined(CONFIG_CPU_MPCORE)
 	.macro	bitop, instr
 	.macro	bitop, instr
 	mov	r2, #1
 	mov	r2, #1
 	and	r3, r0, #7		@ Get bit offset
 	and	r3, r0, #7		@ Get bit offset