Signed-off-by: liguang <lig.f...@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