Skip to content
Commit 002f5a9d authored by Christoffer Dall's avatar Christoffer Dall Committed by Paolo Bonzini
Browse files

arm64: timer: Avoid IRQ race in timer test



The current timer test relies on testing the pending state of the timer
before the interrupt handler has run which could lower the pending
signal again (because it masks the timer output signal).

What we really want is to make sure the output signal from the timer as
perceived by the virtual interrupt controller is low when the timer is
programmed some time far in the future.  The proper way to do that is to
disable the timer interrupt on the distributor and then reading its
pending state.

Signed-off-by: default avatarChristoffer Dall <cdall@linaro.org>
Message-Id: <20170726114249.17774-1-cdall@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 0b41d18b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment