]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 11 May 2017 22:32:58 +0000 (08:32 +1000)
commit583f695e5aeae9592fdbf2673c1b100fadfd6982
tree1fe7a3da274d6a66fd77d4326704b9232fa3a07c
parent2d5f68225bb6e0def5e1680de01018272bfbdad8
drm/nouveau/tmr: avoid processing completed alarms when adding a new one

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c