diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2013-02-22 16:12:29 +1100 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-02-22 16:12:29 +1100 |
commit | 675a797fcd799014a0001216bd7b6dedcd73c46e (patch) | |
tree | 36d53ab039c782022fa0d729f41ce2c6c053c885 /sys/dev/pci | |
parent | 7967db83dc35a973a1a5ddc6d50769a757622666 (diff) |
init rps.hw_lock
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 2 |
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)) |