Re: [Qemu-devel] [PATCH v4 04/10] pc: acpi: cleanup qdev_get_machine() calls

2016-02-28 Thread Marcel Apfelbaum
On 02/26/2016 03:59 PM, Igor Mammedov wrote: cache qdev_get_machine() result in acpi_setup/acpi_build_update time and pass it as an argument to child functions that need it. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 31 +++ 1 file changed, 15 inserti

[Qemu-devel] [PATCH v4 04/10] pc: acpi: cleanup qdev_get_machine() calls

2016-02-26 Thread Igor Mammedov
cache qdev_get_machine() result in acpi_setup/acpi_build_update time and pass it as an argument to child functions that need it. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/i386/acp