diff options
author | Daniel Henrique Barboza | 2021-03-01 13:41:33 +0100 |
---|---|---|
committer | David Gibson | 2021-03-09 23:07:09 +0100 |
commit | 4515a5f786024fabf0bef4cf3d28adf5647e6e82 (patch) | |
tree | 6499b4ee6bc825ac039be968ecf08a9d169d0170 /target | |
parent | spapr_pci.c: add 'unplug already in progress' message for PCI unplug (diff) | |
download | qemu-4515a5f786024fabf0bef4cf3d28adf5647e6e82.tar.gz qemu-4515a5f786024fabf0bef4cf3d28adf5647e6e82.tar.xz qemu-4515a5f786024fabf0bef4cf3d28adf5647e6e82.zip |
qemu_timer.c: add timer_deadline_ms() helper
The pSeries machine is using QEMUTimer internals to return the timeout
in seconds for a timer object, in hw/ppc/spapr.c, function
spapr_drc_unplug_timeout_remaining_sec().
Create a helper in qemu-timer.c to retrieve the deadline for a QEMUTimer
object, in ms, to avoid exposing timer internals to the PPC code.
CC: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210301124133.23800-2-danielhb413@gmail.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions