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)
commitb925a75d6729cec8debd0c378b354d8c228b36aa
tree8a0050246254e8c07aca6658a6abae4453c32cf8
parent7fabd25393c7b5cb749d358772ccea2a570f4b49
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