diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-06-20 14:06:26 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-23 11:26:06 -0500 |
commit | 9e8dd45164af05a5dab00324dd10b037f5bd1e2a (patch) | |
tree | 5dad08a23d9b4661ab5f7abba83427f6fc8498d9 /hw/acpi_piix4.c | |
parent | e0e8384dd471376c3f815c3070f161480a28cc90 (diff) |
notifier: Pass data argument to callback
This allows to pass additional information to the notifier callback
which is useful if sender and receiver do not share any other distinct
data structure.
Will be used first for the clock reset notifier.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/acpi_piix4.c')
-rw-r--r-- | hw/acpi_piix4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 03bd768366..29f0f76c35 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -313,7 +313,7 @@ static void piix4_powerdown(void *opaque, int irq, int power_failing) acpi_pm1_evt_power_down(pm1a, tmr); } -static void piix4_pm_machine_ready(struct Notifier* n) +static void piix4_pm_machine_ready(Notifier *n, void *opaque) { PIIX4PMState *s = container_of(n, PIIX4PMState, machine_ready); uint8_t *pci_conf; |