aboutsummaryrefslogtreecommitdiff
path: root/audio/sdlaudio.c
diff options
context:
space:
mode:
authorPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>2017-02-14 10:15:10 +0300
committerGerd Hoffmann <kraxel@redhat.com>2017-03-01 15:12:03 +0100
commit1ffc266539d443f83d5eb487593be50ef496f09e (patch)
treef006d7eb4a816975f56437c61946d84305200f9a /audio/sdlaudio.c
parent3d4d16f4dc101e16f643acc44dfffdbaf2a8f01c (diff)
audio: make audio poll timer deterministic
This patch changes resetting strategy of the audio polling timer. It does not change expiration time if the timer is already set. This patch is needed to make this timer deterministic and to use execution record/replay for audio devices. audio_reset_timer is used in the function audio_vm_change_state_handler. Therefore every time VM is stopped or restarted the timer will be reset to new timeout. Virtual clock does not proceed while VM is stopped. Therefore there is no need in resetting the timeout when VM restarts. v2: updated commit message v3: now using timer_mod_anticipate function (as suggested by Yurii Zubrytskyi) Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-id: 20170214071510.6112.76764.stgit@PASHA-ISP Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio/sdlaudio.c')
0 files changed, 0 insertions, 0 deletions