Re: [PATCH kvm-unit-tests] arm64: timer: Speed up gic-timer-state check

2020-02-11 Thread Andrew Jones
On Tue, Feb 11, 2020 at 12:49:23PM +, Alexandru Elisei wrote: > Hi, > > On 2/11/20 12:35 PM, Andrew Jones wrote: > > Let's bail out of the wait loop if we see the expected state > > to save about seven seconds of run time. Make sure we wait a > > bit before reading the registers, though, to so

Re: [PATCH kvm-unit-tests] arm64: timer: Speed up gic-timer-state check

2020-02-11 Thread Alexandru Elisei
Hi, On 2/11/20 12:35 PM, Andrew Jones wrote: > Let's bail out of the wait loop if we see the expected state > to save about seven seconds of run time. Make sure we wait a > bit before reading the registers, though, to somewhat mitigate > the chance of the expected state being stale. > > Signed-off

[PATCH kvm-unit-tests] arm64: timer: Speed up gic-timer-state check

2020-02-11 Thread Andrew Jones
Let's bail out of the wait loop if we see the expected state to save about seven seconds of run time. Make sure we wait a bit before reading the registers, though, to somewhat mitigate the chance of the expected state being stale. Signed-off-by: Andrew Jones --- arm/timer.c | 17 ++--