[intel-gem] replace call to jiffies_to-msec with simple inline

This commit is contained in:
Keith Packard 2008-05-25 20:41:42 -07:00
parent 8c2b207f9b
commit c69b81df62

View file

@ -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;
}