KVM: selftests: change pthread_yield to sched_yield
authorAndrew Jones <drjones@redhat.com>
Tue, 13 Jul 2021 20:37:41 +0000 (22:37 +0200)
committerMarc Zyngier <maz@kernel.org>
Wed, 14 Jul 2021 10:55:18 +0000 (11:55 +0100)
commitbac0b135907855e9f8c032877c3df3c60885a08f
tree31684a63789ae4437e951133bdc14d945d45f55f
parent80d9ac9bd7b9366c2a89d2716a397749299728e7
KVM: selftests: change pthread_yield to sched_yield

With later GCC we get

 steal_time.c: In function ‘main’:
 steal_time.c:323:25: warning: ‘pthread_yield’ is deprecated: pthread_yield is deprecated, use sched_yield instead [-Wdeprecated-declarations]

Let's follow the instructions and use sched_yield instead.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210713203742.29680-2-drjones@redhat.com
tools/testing/selftests/kvm/steal_time.c