From: Martin Peres Date: Mon, 12 Aug 2013 02:48:50 +0000 (-0400) Subject: drm/nouveau/timer: restore the time on resume X-Git-Tag: v3.12-rc1~136^2~3^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fabd25393c7b5cb749d358772ccea2a570f4b49;p=pandora-kernel.git 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 Tested-by: Martin Peres Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed