提交 53621860 编写于 作者: T Tejun Heo 提交者: Daniel Vetter

i915: use alloc_ordered_workqueue() instead of explicit UNBOUND w/ max_active = 1

This is an equivalent conversion and will ease scheduled removal of
WQ_NON_REENTRANT.
Signed-off-by: NTejun Heo <tj@kernel.org>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 b4c145c1
...@@ -1558,11 +1558,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) ...@@ -1558,11 +1558,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
* *
* All tasks on the workqueue are expected to acquire the dev mutex * All tasks on the workqueue are expected to acquire the dev mutex
* so there is no point in running more than one instance of the * so there is no point in running more than one instance of the
* workqueue at any time: max_active = 1 and NON_REENTRANT. * workqueue at any time. Use an ordered one.
*/ */
dev_priv->wq = alloc_workqueue("i915", dev_priv->wq = alloc_ordered_workqueue("i915", 0);
WQ_UNBOUND | WQ_NON_REENTRANT,
1);
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册