drm/nouveau/tmr: avoid processing completed alarms when adding a new one
authorBen Skeggs <bskeggs@redhat.com>
Thu, 11 May 2017 07:13:29 +0000 (17:13 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:10 +0000 (14:30 +0200)
commit9d78e40f5f41ad1db1849f8d15acbda99d0871b4
tree690ab9a977e18441fb77969b1a9eb82e461387d1
parent5e07724c28f4e06fe42dd5b58bb6f9dd56510567
drm/nouveau/tmr: avoid processing completed alarms when adding a new one

commit 330bdf62fe6a6c5b99a647f7bf7157107c9348b3 upstream.

The idea here was to avoid having to "manually" program the HW if there's
a new earliest alarm.  This was lazy and bad, as it leads to loads of fun
races between inter-related callers (ie. therm).

Turns out, it's not so difficult after all.  Go figure ;)

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c