[PATCH 1/9] workqueue: devres: Add device-managed allocate workqueue

Tejun Heo tj at kernel.org
Mon Feb 23 07:42:10 PST 2026


Hello,

On Mon, Feb 23, 2026 at 08:27:29AM +0100, Krzysztof Kozlowski wrote:
> @@ -568,19 +588,31 @@ alloc_workqueue_lockdep_map(const char *fmt, unsigned int flags, int max_active,
>   */
>  #define alloc_ordered_workqueue(fmt, flags, args...)			\
>  	alloc_workqueue(fmt, WQ_UNBOUND | __WQ_ORDERED | (flags), 1, ##args)
> +#define devm_alloc_ordered_workqueue(dev, fmt, flags, args...)		\
> +	devm_alloc_workqueue(dev, fmt, WQ_UNBOUND | __WQ_ORDERED | (flags), 1, ##args)

Let's just add devm_alloc_workqueue() and devm_alloc_ordered_workqueue() and
skip the legacy wrappers.

Thanks.

-- 
tejun



More information about the linux-arm-kernel mailing list