drm/nouveau: base fence timeout on time of emission
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 25 Apr 2012 21:20:33 +0000 (23:20 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 24 May 2012 06:31:59 +0000 (16:31 +1000)
commit695b95b810d1c3024d7bad9e3658a35e11a60d86
tree20a57ff7ec4ee458ff409eb26b3238fac8960182
parentd58086deaa32dc5e630aab222851b282f77e00bb
drm/nouveau: base fence timeout on time of emission

Wait loop can be interrupted by signal, so if signals are raised
periodically (e.g. SIGALRM) this loop may never finish. Use
emission time as a base for fence timeout.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c