From: Jan Kiszka Date: Tue, 20 Sep 2011 15:21:07 +0000 (+0200) Subject: qxl: Drop phread_yield on OOM X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4ec8d3077b799fcdd9fe0f38e432791c8fceb88e;p=qemu.git 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 --- 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; }