Browse Source

drm/i915: Use a single thread workqueue

Our work is serialised so allocating per-cpu workqueues is overkill and
a waste of resources.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Chris Wilson 15 years ago
parent
commit
aed5f1dc26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/i915/i915_dma.c

+ 1 - 1
drivers/gpu/drm/i915/i915_dma.c

@@ -1416,7 +1416,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
 	if (ret)
 	if (ret)
 		goto out_iomapfree;
 		goto out_iomapfree;
 
 
-	dev_priv->wq = create_workqueue("i915");
+	dev_priv->wq = create_singlethread_workqueue("i915");
 	if (dev_priv->wq == NULL) {
 	if (dev_priv->wq == NULL) {
 		DRM_ERROR("Failed to create our workqueue.\n");
 		DRM_ERROR("Failed to create our workqueue.\n");
 		ret = -ENOMEM;
 		ret = -ENOMEM;