Explorar o código

s390: remove diag 44 calls from cpu_relax()

Simplify cpu_relax() to a simple barrier(). Performance wise this doesn't
seem to make any big difference anymore, since nearly all lock variants
have directed yield semantics in the meantime.
Also this makes s390 behave like all other architectures.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Heiko Carstens %!s(int64=11) %!d(string=hai) anos
pai
achega
57f2ffe14f
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      arch/s390/include/asm/processor.h

+ 0 - 2
arch/s390/include/asm/processor.h

@@ -217,8 +217,6 @@ static inline unsigned short stap(void)
  */
  */
 static inline void cpu_relax(void)
 static inline void cpu_relax(void)
 {
 {
-	if (MACHINE_HAS_DIAG44)
-		asm volatile("diag 0,0,68");
 	barrier();
 	barrier();
 }
 }