Patchwork [1/2] vl: boolize acpi_enabled

login
register
mail settings
Submitter liguang
Date May 15, 2013, 4:01 a.m.
Message ID <1368590499-11707-1-git-send-email-lig.fnst@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/243899/
State New
Headers show

Comments

liguang - May 15, 2013, 4:01 a.m.
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(-)

Patch

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;