Skip to content
Snippets Groups Projects
Commit 9d24bafb authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Octeon: Set kernel_uses_llsc to false on non-SMP builds.

parent b791d119
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,16 @@ ...@@ -31,12 +31,16 @@
#define cpu_has_cache_cdex_s 0 #define cpu_has_cache_cdex_s 0
#define cpu_has_prefetch 1 #define cpu_has_prefetch 1
#define cpu_has_llsc 1
/* /*
* We should disable LL/SC on non SMP systems as it is faster to * We Disable LL/SC on non SMP systems as it is faster to disable
* disable interrupts for atomic access than a LL/SC. Unfortunatly we * interrupts for atomic access than a LL/SC.
* cannot as this breaks asm/futex.h
*/ */
#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_vtag_icache 1
#define cpu_has_dc_aliases 0 #define cpu_has_dc_aliases 0
#define cpu_has_ic_fills_f_dc 0 #define cpu_has_ic_fills_f_dc 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment