From patchwork Thu Apr 5 10:59:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 151093 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DF6A4B7005 for ; Fri, 6 Apr 2012 16:55:04 +1000 (EST) Received: from localhost ([::1]:45559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFkVO-0003ts-S1 for incoming@patchwork.ozlabs.org; Thu, 05 Apr 2012 07:05:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFkQx-0007kE-Hr for qemu-devel@nongnu.org; Thu, 05 Apr 2012 07:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFkPR-00075E-KT for qemu-devel@nongnu.org; Thu, 05 Apr 2012 07:00:55 -0400 Received: from thoth.sbs.de ([192.35.17.2]:20039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFkPR-000740-BU for qemu-devel@nongnu.org; Thu, 05 Apr 2012 06:59:21 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id q35AxI4r014826; Thu, 5 Apr 2012 12:59:18 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id q35AxIcD027596; Thu, 5 Apr 2012 12:59:18 +0200 From: Jan Kiszka To: Anthony Liguori , qemu-devel@nongnu.org Date: Thu, 5 Apr 2012 12:59:14 +0200 Message-Id: <548d2410d10e66e2c61e5c1f215798adff204e14.1333623555.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.2 Cc: Kevin Wolf , Paolo Bonzini Subject: [Qemu-devel] [PATCH v3 07/10] Drop unused qemu_eventfd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The only user was the main loop which is now relying on QemuEvent. Signed-off-by: Jan Kiszka --- oslib-posix.c | 31 ------------------------------- qemu-common.h | 1 - 2 files changed, 0 insertions(+), 32 deletions(-) diff --git a/oslib-posix.c b/oslib-posix.c index b6a3c7f..7928a0d 100644 --- a/oslib-posix.c +++ b/oslib-posix.c @@ -58,9 +58,6 @@ static int running_on_valgrind = -1; #ifdef CONFIG_LINUX #include #endif -#ifdef CONFIG_EVENTFD -#include -#endif int qemu_get_thread_id(void) { @@ -177,34 +174,6 @@ int qemu_pipe(int pipefd[2]) return ret; } -/* - * Creates an eventfd that looks like a pipe and has EFD_CLOEXEC set. - */ -int qemu_eventfd(int fds[2]) -{ -#ifdef CONFIG_EVENTFD - int ret; - - ret = eventfd(0, 0); - if (ret >= 0) { - fds[0] = ret; - fds[1] = dup(ret); - if (fds[1] == -1) { - close(ret); - return -1; - } - qemu_set_cloexec(ret); - qemu_set_cloexec(fds[1]); - return 0; - } - if (errno != ENOSYS) { - return -1; - } -#endif - - return qemu_pipe(fds); -} - int qemu_utimens(const char *path, const struct timespec *times) { struct timeval tv[2], tv_now; diff --git a/qemu-common.h b/qemu-common.h index 4647dd9..732be5d 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -192,7 +192,6 @@ ssize_t qemu_recv_full(int fd, void *buf, size_t count, int flags) QEMU_WARN_UNUSED_RESULT; #ifndef _WIN32 -int qemu_eventfd(int pipefd[2]); int qemu_pipe(int pipefd[2]); #endif