aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-25 20:41:42 -0700
committerKeith Packard <keithp@keithp.com>2008-05-25 20:41:42 -0700
commitc69b81df62cb7e04f956f2cf77091216754c3632 (patch)
tree8c327ac01120d0bfcabc012a3b3a04f4bc61d144
parent8c2b207f9b1fb1cf6df23c7ef73ca57dfb5dd459 (diff)
[intel-gem] replace call to jiffies_to-msec with simple inline
-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;
}