From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R628G-0000tO-FL for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:21:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R628D-0003xE-Fp for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:21:12 -0400 Received: from thoth.sbs.de ([192.35.17.2]:30184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R628D-0003wq-5A for qemu-devel@nongnu.org; Tue, 20 Sep 2011 11:21:09 -0400 Message-ID: <4E78AF63.4060204@siemens.com> Date: Tue, 20 Sep 2011 17:21:07 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] qxl: Drop phread_yield on OOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel 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 --- Depends on the previous qxl patch I just sent. hw/qxl.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 082b940..3e9052f 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" @@ -1215,10 +1213,6 @@ async_common: if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { break; } - pthread_yield(); - if (!SPICE_RING_IS_EMPTY(&d->ram->release_ring)) { - break; - } d->oom_running = 1; qxl_spice_oom(d); d->oom_running = 0; -- 1.7.3.4