]> Git Repo - qemu.git/commit
qemu_timer.c: add timer_deadline_ms() helper
authorDaniel Henrique Barboza <[email protected]>
Mon, 1 Mar 2021 12:41:33 +0000 (09:41 -0300)
committerDavid Gibson <[email protected]>
Tue, 9 Mar 2021 22:07:09 +0000 (09:07 +1100)
commit4515a5f786024fabf0bef4cf3d28adf5647e6e82
tree6499b4ee6bc825ac039be968ecf08a9d169d0170
parente35dfbd22780aafbcd4b6da5130a00fc085fd5de
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 <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Signed-off-by: Daniel Henrique Barboza <[email protected]>
Message-Id: <20210301124133[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/spapr_drc.c
include/qemu/timer.h
util/qemu-timer.c
This page took 0.028877 seconds and 4 git commands to generate.