drm/nouveau/tmr: handle races with hw when updating the next alarm time

commit 1b0f84380b upstream.

If the time to the next alarm is short enough, we could race with HW and
end up with an ~4 second delay until it triggers.

Fix this by checking again after we update HW.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ben Skeggs 2017-05-11 17:19:48 +10:00 • committed by Greg Kroah-Hartman
commit b77adf29b8