summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-02-22 16:12:29 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-02-22 16:12:29 +1100
commit675a797fcd799014a0001216bd7b6dedcd73c46e (patch)
tree36d53ab039c782022fa0d729f41ce2c6c053c885 /sys/dev/pci
parent7967db83dc35a973a1a5ddc6d50769a757622666 (diff)
init rps.hw_lock
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/i915_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index be731056be9..fb521bb1fc3 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -809,6 +809,8 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux)
mtx_init(&dev_priv->dpio_lock, IPL_NONE);
mtx_init(&mchdev_lock, IPL_NONE);
+ rw_init(&dev_priv->rps.hw_lock, "rpshw");
+
if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev))
dev_priv->num_pipe = 3;
else if (IS_MOBILE(dev) || !IS_GEN2(dev))