mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-29 06:50:13 +01:00
[intel-gem] replace call to jiffies_to-msec with simple inline
This commit is contained in:
parent
8c2b207f9b
commit
c69b81df62
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue