summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index b3b2dbce..c53a39ec 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -1221,7 +1221,7 @@ i915_gem_ring_throttle(struct drm_device *dev)
list);
/* Break out if we're close enough. */
- if (jiffies_to_msecs(jiffies - request->emitted_jiffies) < 20) {
+ if ((long) (jiffies - request->emitted_jiffies) <= (20 * HZ) / 1000) {
mutex_unlock(&dev->struct_mutex);
return 0;
}