qemu-e2k/include/hw/acpi
Igor Mammedov 80db0e7822 memhp: don't generate memory hotplug AML if it's not enabled/supported
That reduces DSDT by 910 bytes when memory hotplug
isn't enabled.

While doing so drop intermediate variables/arguments
passing around ACPI_MEMORY_HOTPLUG_IO_LEN and making
it local to memory_hotplug.c, hardcoding it there as
it can't change.

Also don't pass around ACPI_MEMORY_HOTPLUG_BASE through
intermediate variables/arguments where it's not needed.
Instead initialize in module static variable when MMIO
region is mapped and use that within memory_hotplug.c
whenever it's required.
That way MMIO base specified only at one place and AML
with MMIO would always use the same value.

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>
2017-01-10 07:03:24 +02:00
..
acpi_dev_interface.h pc: memhp: enable nvdimm device hotplug 2016-11-01 19:21:09 +02:00
acpi-defs.h acpi: add ATSR for q35 2017-01-10 05:56:59 +02:00
acpi.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
aml-build.h hw/i386: AMD IOMMU IVRS table 2016-09-24 01:02:01 +03:00
bios-linker-loader.h all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
cpu_hotplug.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00
cpu.h pc: use new CPU hotplug interface since 2.7 machine type 2016-06-24 05:21:38 +03:00
ich9.h acpi: cpuhp: add CPU devices AML with _STA method 2016-06-24 05:21:01 +03:00
ipmi.h acpi: Add IPMI table entries 2016-06-24 05:13:57 +03:00
memory_hotplug.h memhp: don't generate memory hotplug AML if it's not enabled/supported 2017-01-10 07:03:24 +02:00
pc-hotplug.h memhp: don't generate memory hotplug AML if it's not enabled/supported 2017-01-10 07:03:24 +02:00
pcihp.h pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
piix4.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
tco.h Use scripts/clean-includes to drop redundant qemu/typedefs.h 2016-03-22 22:20:16 +01:00
tpm.h TPM2 ACPI table support 2015-06-01 14:18:54 +02:00