pc: acpi: cleanup qdev_get_machine() calls
commit3d3ebcad6a0ff7ceb6dd0f2f678c326968399b18
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Feb 2016 13:59:22 +0000 (26 14:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:12 +0000 (11 16:59 +0200)
tree6f8e963f1360ea7e0e20421db54c304af26f9d25
parent3811ef14f59f9b0f9d9ad660a8d035c30944ca44
pc: acpi: cleanup qdev_get_machine() calls

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 <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/i386/acpi-build.c