From 4ec8d3077b799fcdd9fe0f38e432791c8fceb88e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 20 Sep 2011 17:21:07 +0200 Subject: [PATCH] qxl: Drop phread_yield on OOM This was only a best-effort attempt, by far not guaranteed to have an effect. Drop it so that also no direct pthread usage remain in the device model. Signed-off-by: Jan Kiszka Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index a0b0f36eb5..fb2b22d363 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -18,8 +18,6 @@ * along with this program; if not, see . */ -#include - #include "qemu-common.h" #include "qemu-timer.h" #include "qemu-queue.h" @@ -1212,10 +1210,6 @@ async_common: qxl_update_irq(d); break; case QXL_IO_NOTIFY_OOM: - if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { - break; - } - pthread_yield(); if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { break; }