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

Krzysztof Kozlowski krzk at kernel.org
Thu Mar 5 12:16:59 PST 2026


On 23/02/2026 16:42, Tejun Heo wrote:
> 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.

Ack, I will replace legacy calls then in the drivers.

Best regards,
Krzysztof



More information about the Linux-mediatek mailing list