qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 5/5] cleanup unused qemu_system_powerdown


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH 5/5] cleanup unused qemu_system_powerdown
Date: Wed, 29 Aug 2012 19:02:47 +0200

all deps that used qemu_system_powerdown are converted to notifiers,
so remove it for have no use anymore

Signed-off-by: Igor Mammedov <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]