From 675a797fcd799014a0001216bd7b6dedcd73c46e Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 22 Feb 2013 16:12:29 +1100 Subject: init rps.hw_lock --- sys/dev/pci/drm/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/pci') 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)) -- cgit v1.2.3