]> git.baikalelectronics.ru Git - kernel.git/commit
s390: reintroduce diag 44 calls for cpu_relax()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 28 Jan 2015 06:43:56 +0000 (07:43 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jan 2015 08:19:16 +0000 (09:19 +0100)
commitea035c83bda2aea81838532db3e4f1f4c2f53b33
treed5d772fb65e20be03a5cdb5f323a66308a6d52e8
parent6c12a1f2689f32f19c33affb139d52a971111d91
s390: reintroduce diag 44 calls for cpu_relax()

Christian Borntraeger reported that the now missing diag 44 calls (voluntary
time slice end) does cause a performance regression for stop_machine() calls
if a machine has more virtual cpus than the host has physical cpus.

This patch mainly reverts 10d8c7c08ce3d64e ("s390: remove diag 44 calls from
cpu_relax()") with the exception that we still do not issue diag 44 calls if
running with smt enabled. Due to group scheduling algorithms when running in
LPAR this would lead to significant latencies.
However, when running in LPAR we do not have more virtual than physical cpus.

Reported-and-tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/processor.h
arch/s390/kernel/processor.c