From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgZa-0002tm-Jd for qemu-devel@nongnu.org; Tue, 25 Oct 2011 08:57:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIgNj-0004Mc-CM for qemu-devel@nongnu.org; Tue, 25 Oct 2011 08:45:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgNi-0004ML-Tz for qemu-devel@nongnu.org; Tue, 25 Oct 2011 08:45:27 -0400 From: Gerd Hoffmann Date: Tue, 25 Oct 2011 14:25:45 +0200 Message-Id: <1319545550-24203-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1319545550-24203-1-git-send-email-kraxel@redhat.com> References: <1319545550-24203-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 06/11] qxl: Drop phread_yield on OOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Gerd Hoffmann From: Jan Kiszka 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 files changed, 0 insertions(+), 6 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index a0b0f36..fb2b22d 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.1