drm: msleep() must not sleep forever
authorFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 23 Oct 2014 15:36:30 +0000 (17:36 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 23 Oct 2014 16:05:42 +0000 (18:05 +0200)
commit973d111be925a4b40dea8054522c357ae9c23640
tree9903e330b9cd746f86c834ba0ce1bba680c35a88
parent6bd02a9f0f54f11d143f683e984122a12bcbaa3b
drm: msleep() must not sleep forever

* In some cases, the msleep() implementation called tsleep() with a
  timeout value of zero, making the calling thread sleep forever.

* Ensure tsleep() is always called with a minimal timeout value of
  one tick to avoid this situation.
sys/dev/drm/include/linux/delay.h