]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/timer: add a way to cancel alarms
authorMartin Peres <martin.peres@labri.fr>
Mon, 12 Aug 2013 02:48:51 +0000 (22:48 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:46 +0000 (13:46 +1000)
commitccb68956f2cf944c568544d56e10d9077481ce6d
tree8a0050246254e8c07aca6658a6abae4453c32cf8
parenta950e193382cc680a9b808fa2de27e13c1e575a1
drm/nouveau/timer: add a way to cancel alarms

Since alarms don't play well with suspend, it is important every alarm
user cancels his tasks before suspending.

The task should be rescheduled on resume.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Dash Four <mr.dash.four@googlemail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/include/subdev/timer.h
drivers/gpu/drm/nouveau/core/subdev/timer/base.c
drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c