Skip to content

Commit 57f2ffe

Browse files
heicarstMartin Schwidefsky
authored andcommitted
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>
1 parent 6ebdf1c commit 57f2ffe

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/s390/include/asm/processor.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ static inline unsigned short stap(void)
217217
*/
218218
static inline void cpu_relax(void)
219219
{
220-
if (MACHINE_HAS_DIAG44)
221-
asm volatile("diag 0,0,68");
222220
barrier();
223221
}
224222

0 commit comments

Comments
 (0)