]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: Octeon: Set kernel_uses_llsc to false on non-SMP builds.
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 13 Jul 2009 18:15:20 +0000 (11:15 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:50 +0000 (20:07 +0200)
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h

index 3d830756b13a4cf7b11fd5f51cb1c116e01675e3..425e708d4fb9726f1d48b5d0fa293044f074566b 100644 (file)
 #define cpu_has_cache_cdex_s   0
 #define cpu_has_prefetch       1
 
+#define cpu_has_llsc           1
 /*
- * We should disable LL/SC on non SMP systems as it is faster to
- * disable interrupts for atomic access than a LL/SC.  Unfortunatly we
- * cannot as this breaks asm/futex.h
+ * We Disable LL/SC on non SMP systems as it is faster to disable
+ * interrupts for atomic access than a LL/SC.
  */
-#define cpu_has_llsc           1
+#ifdef CONFIG_SMP
+# define kernel_uses_llsc      1
+#else
+# define kernel_uses_llsc      0
+#endif
 #define cpu_has_vtag_icache    1
 #define cpu_has_dc_aliases     0
 #define cpu_has_ic_fills_f_dc  0