kvm/x86: Hyper-V unify stimer_start() and stimer_restart()
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Mon, 28 Dec 2015 15:27:20 +0000 (18:27 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jan 2016 18:04:40 +0000 (19:04 +0100)
commitf808495da56f28e94c6448125158f1175009fcfc
treeaee959706591136856acbbeb8c29c854018b3491
parent019b9781ccd667d4160f3636c8735e3baa085555
kvm/x86: Hyper-V unify stimer_start() and stimer_restart()

This will be used in future to start Hyper-V SynIC timer
in several places by one logic in one function.

Changes v2:
* drop stimer->count == 0 check inside stimer_start()
* comment stimer_start() assumptions

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c