pc: use AcpiDeviceIfClass.send_event to issue GPE events
authorIgor Mammedov <imammedo@redhat.com>
Tue, 31 May 2016 10:01:17 +0000 (12:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jun 2016 12:36:54 +0000 (15:36 +0300)
commit0058c0823815d33c96f4f26106dbd713c76280e1
tree8d9cf683255fa4ebd50eb23e94ef0883a6c96e5d
parenteaf23bf794c749c621a5605c1076a16e3d81e12b
pc: use AcpiDeviceIfClass.send_event to issue GPE events

it reduces number of args passed in handlers by 1 and
a number of used proxy wrappers saving ~20LOC.
Also it allows to make cpu/mem hotplug code more
universal as it would allow ARM to reuse it without
rewrite by providing its own send_event callback
to trigger events usiong GPIO instead of GPE
as fixed hadrware ACPI model doen't have GPE at all.

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>
hw/acpi/cpu_hotplug.c
hw/acpi/ich9.c
hw/acpi/memory_hotplug.c
hw/acpi/pcihp.c
hw/acpi/piix4.c
hw/isa/lpc_ich9.c
include/hw/acpi/cpu_hotplug.h
include/hw/acpi/ich9.h
include/hw/acpi/memory_hotplug.h
include/hw/acpi/pcihp.h