From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lfo-0006Xn-9o for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:03:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6lfl-0003Pm-O6 for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:03:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6lfl-0003PI-GD for qemu-devel@nongnu.org; Wed, 29 Aug 2012 13:03:21 -0400 From: Igor Mammedov Date: Wed, 29 Aug 2012 19:02:47 +0200 Message-Id: <1346259767-991-6-git-send-email-imammedo@redhat.com> In-Reply-To: <1346259767-991-1-git-send-email-imammedo@redhat.com> References: <1346259767-991-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 5/5] cleanup unused qemu_system_powerdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mst@redhat.com, jan.kiszka@siemens.com, lcapitulino@redhat.com, blauwirbel@gmail.com, alex.williamson@redhat.com, kraxel@redhat.com, pbonzini@redhat.com all deps that used qemu_system_powerdown are converted to notifiers, so remove it for have no use anymore Signed-off-by: Igor Mammedov --- sysemu.h | 2 -- vl.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/sysemu.h b/sysemu.h index eb9a750..1093046 100644 --- a/sysemu.h +++ b/sysemu.h @@ -9,7 +9,6 @@ #include "qapi-types.h" #include "notify.h" #include "main-loop.h" -#include "hw/irq.h" /* vl.c */ @@ -63,7 +62,6 @@ int qemu_reset_requested(void); int qemu_powerdown_requested(void); void qemu_system_killed(int signal, pid_t pid); void qemu_kill_report(void); -extern qemu_irq qemu_system_powerdown; void qemu_devices_reset(void); void qemu_system_reset(bool report); diff --git a/vl.c b/vl.c index 8dc4b4f..e0d1295 100644 --- a/vl.c +++ b/vl.c @@ -1594,8 +1594,6 @@ void qemu_system_vmstop_request(RunState state) qemu_notify_event(); } -qemu_irq qemu_system_powerdown; - static bool main_loop_should_exit(void) { RunState r; @@ -1633,7 +1631,6 @@ static bool main_loop_should_exit(void) } if (qemu_powerdown_requested()) { qemu_system_powerdown(); - qemu_irq_raise(qemu_system_powerdown); } if (qemu_vmstop_requested(&r)) { vm_stop(r); -- 1.7.11.4