Просмотр исходного кода

[MIPS] Don't use R10000 llsc workaround version for all llsc-full processors.

Found and original patch by bile@landofbile.com.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 18 лет назад
Родитель
Сommit
904880e717
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/asm-mips/system.h

+ 1 - 1
include/asm-mips/system.h

@@ -392,7 +392,7 @@ static inline unsigned long __cmpxchg_u64(volatile int * m, unsigned long old,
 {
 	__u64 retval;
 
-	if (cpu_has_llsc) {
+	if (cpu_has_llsc && R10000_LLSC_WAR) {
 		__asm__ __volatile__(
 		"	.set	push					\n"
 		"	.set	noat					\n"