summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/steal_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/kvm/steal_time.c')
-rw-r--r--tools/testing/selftests/kvm/steal_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/steal_time.c b/tools/testing/selftests/kvm/steal_time.c
index b0031f2d38fd..ecec30865a74 100644
--- a/tools/testing/selftests/kvm/steal_time.c
+++ b/tools/testing/selftests/kvm/steal_time.c
@@ -320,7 +320,7 @@ int main(int ac, char **av)
run_delay = get_run_delay();
pthread_create(&thread, &attr, do_steal_time, NULL);
do
- pthread_yield();
+ sched_yield();
while (get_run_delay() - run_delay < MIN_RUN_DELAY_NS);
pthread_join(thread, NULL);
run_delay = get_run_delay() - run_delay;