From 7fabd25393c7b5cb749d358772ccea2a570f4b49 Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Sun, 11 Aug 2013 22:48:50 -0400 Subject: [PATCH] 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-format-patch failed