]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/timer: restore the time on resume
authorMartin Peres <martin.peres@labri.fr>
Mon, 12 Aug 2013 02:48:50 +0000 (22:48 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 4 Sep 2013 03:46:42 +0000 (13:46 +1000)
commit775224056f16b868d0c6a7dc9d4c5c8d22728dc1
tree77ef02640979f17f8375e7886889f6f4f8bf0761
parente0fcee37f285d2eb4d9a17051244780f7a1574fa
drm/nouveau/timer: restore the time on resume

This can be useful if some parts of Nouveau try to calculate the time
between two events.  Without this patch, the time difference would be
negative in the case where the computer is suspended/resumed between
two events.

This patch should fix fan speed probing when done while suspending/resuming.

Solve this by saving the current time before suspending and by restoring it
on resume.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Tested-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c