From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnEUq-00051d-7R for qemu-devel@nongnu.org; Sun, 01 Dec 2013 16:24:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnEUf-0007wn-LP for qemu-devel@nongnu.org; Sun, 01 Dec 2013 16:24:08 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:49916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnEUf-0007wh-Es for qemu-devel@nongnu.org; Sun, 01 Dec 2013 16:23:57 -0500 Received: by mail-qa0-f44.google.com with SMTP id i13so3647788qae.17 for ; Sun, 01 Dec 2013 13:23:56 -0800 (PST) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 1 Dec 2013 22:23:34 +0100 Message-Id: <1385933027-21261-2-git-send-email-marcandre.lureau@gmail.com> In-Reply-To: <1385933027-21261-1-git-send-email-marcandre.lureau@gmail.com> References: <1385933027-21261-1-git-send-email-marcandre.lureau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCHv2 01/14] coroutine: remove qemu_co_queue_wait_insert_head List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kraxel@redhat.com qemu_co_queue_wait_insert_head() is unused in qemu code base now. Signed-off-by: Marc-André Lureau --- include/block/coroutine.h | 6 ------ qemu-coroutine-lock.c | 8 -------- 2 files changed, 14 deletions(-) diff --git a/include/block/coroutine.h b/include/block/coroutine.h index 4d5c0cf..b122c0c 100644 --- a/include/block/coroutine.h +++ b/include/block/coroutine.h @@ -121,12 +121,6 @@ void qemu_co_queue_init(CoQueue *queue); void coroutine_fn qemu_co_queue_wait(CoQueue *queue); /** - * Adds the current coroutine to the head of the CoQueue and transfers control to the - * caller of the coroutine. - */ -void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue); - -/** * Restarts the next coroutine in the CoQueue and removes it from the queue. * * Returns true if a coroutine was restarted, false if the queue is empty. diff --git a/qemu-coroutine-lock.c b/qemu-coroutine-lock.c index aeb33b9..e4860ae 100644 --- a/qemu-coroutine-lock.c +++ b/qemu-coroutine-lock.c @@ -41,14 +41,6 @@ void coroutine_fn qemu_co_queue_wait(CoQueue *queue) assert(qemu_in_coroutine()); } -void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue) -{ - Coroutine *self = qemu_coroutine_self(); - QTAILQ_INSERT_HEAD(&queue->entries, self, co_queue_next); - qemu_coroutine_yield(); - assert(qemu_in_coroutine()); -} - /** * qemu_co_queue_run_restart: * -- 1.8.4.2