summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/drm/intel_pm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/intel_pm.c b/sys/dev/pci/drm/intel_pm.c
index a939d6f722b..05a7a786b09 100644
--- a/sys/dev/pci/drm/intel_pm.c
+++ b/sys/dev/pci/drm/intel_pm.c
@@ -2562,7 +2562,7 @@ ironlake_enable_drps(struct drm_device *dev)
I915_READ(0x112e0);
dev_priv->ips.last_time1 = jiffies_to_msecs(ticks);
dev_priv->ips.last_count2 = I915_READ(0x112f4);
- nanotime(&dev_priv->ips.last_time2);
+ nanouptime(&dev_priv->ips.last_time2);
// spin_unlock_irq(&mchdev_lock);
}
@@ -3298,7 +3298,7 @@ __i915_update_gfx_val(struct inteldrm_softc *dev_priv)
// assert_spin_locked(&mchdev_lock);
- nanotime(&now);
+ nanouptime(&now);
timespecsub(&now, &dev_priv->ips.last_time2, &diff1);
/* Don't divide by 0 */