qxl: Drop phread_yield on OOM
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 20 Sep 2011 15:21:07 +0000 (17:21 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Oct 2011 12:00:53 +0000 (14:00 +0200)
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 <jan.kiszka@siemens.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c

index a0b0f36eb5f356137d1d170fb8cb48fa8c7235fa..fb2b22d3634e03249dfcb52eb6d91ae9fd5a801b 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -18,8 +18,6 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <pthread.h>
-
 #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;
         }