]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
KVM: s390: change default halt poll time to 50us
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 15 May 2019 07:59:08 +0000 (09:59 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 May 2019 07:40:39 +0000 (09:40 +0200)
Recent measurements indicate that using 50us results in a reduced CPU
consumption, while still providing the benefit of halt polling. Let's
use 50us instead.

Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h

index bdbc81b5bc914bea9526a530625a360fb7a1cf26..2b00a3ebee08627f89653ec8073cc1f2c7854b84 100644 (file)
@@ -36,7 +36,7 @@
  */
 #define KVM_NR_IRQCHIPS 1
 #define KVM_IRQCHIP_NUM_PINS 4096
-#define KVM_HALT_POLL_NS_DEFAULT 80000
+#define KVM_HALT_POLL_NS_DEFAULT 50000
 
 /* s390-specific vcpu->requests bit members */
 #define KVM_REQ_ENABLE_IBS     KVM_ARCH_REQ(0)