qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] vl: boolize acpi_enabled
@ 2013-05-15  4:01 liguang
  2013-05-15  4:01 ` [Qemu-devel] [PATCH 2/2] pc: reject do pc_acpi_init if acpi_enabled is false liguang
  0 siblings, 1 reply; 7+ messages in thread
From: liguang @ 2013-05-15  4:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Anthony Liguori, mst, Bruce Rogers, Gerd Hoffmann, Paolo Bonzini,
	liguang

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 include/hw/acpi/acpi.h |    2 +-
 vl.c                   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index 635be7b..b01a9dc 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -161,7 +161,7 @@ void acpi_gpe_ioport_writeb(ACPIREGS *ar, uint32_t addr, uint32_t val);
 uint32_t acpi_gpe_ioport_readb(ACPIREGS *ar, uint32_t addr);
 
 /* acpi.c */
-extern int acpi_enabled;
+extern bool acpi_enabled;
 extern char unsigned *acpi_tables;
 extern size_t acpi_tables_len;
 
diff --git a/vl.c b/vl.c
index 6e6225f..07acd5f 100644
--- a/vl.c
+++ b/vl.c
@@ -216,7 +216,7 @@ int smp_threads = 1;
 #ifdef CONFIG_VNC
 const char *vnc_display;
 #endif
-int acpi_enabled = 1;
+bool acpi_enabled = true;
 int no_hpet = 0;
 int fd_bootchk = 1;
 static int no_reboot;
@@ -3651,7 +3651,7 @@ int main(int argc, char **argv, char **envp)
 #endif
                 break;
             case QEMU_OPTION_no_acpi:
-                acpi_enabled = 0;
+                acpi_enabled = false;
                 break;
             case QEMU_OPTION_no_hpet:
                 no_hpet = 1;
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-16 10:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-15  4:01 [Qemu-devel] [PATCH 1/2] vl: boolize acpi_enabled liguang
2013-05-15  4:01 ` [Qemu-devel] [PATCH 2/2] pc: reject do pc_acpi_init if acpi_enabled is false liguang
2013-05-15  8:38   ` Paolo Bonzini
2013-05-15  8:54     ` li guang
2013-05-15 13:44       ` Laszlo Ersek
2013-05-16  0:14         ` li guang
2013-05-16 10:22           ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).