summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-03-12 01:28:59 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-03-12 01:28:59 +1100
commit43657c6c8bbf9d3da585fc4286b1d740695748e7 (patch)
tree92858169fc5159ab2a38a7151a639fd5dd0dc7dc
parent07c8d8691d36ac666024bacfc15182742cd5a7c7 (diff)
use nanouptime instead of nanotime here, suggested by kettenis
-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 */