mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
accel/amdxdna: Replace create_singlethread_workqueue with alloc_ordered_workqueue
create_singlethread_workqueue() is deprecated. Replace it with alloc_ordered_workqueue() to use the shared system workqueue infrastructure more efficiently. WQ_MEM_RECLAIM is added to ensure the mailbox can process interrupts under memory pressure. Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: George Karagounis <mail@taterr.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260925124804.58808-2-mail@taterr.org
This commit is contained in:
parent
9b96db279e
commit
1b8d59781f
|
|
@ -481,7 +481,7 @@ struct mailbox_channel *xdna_mailbox_alloc_channel(struct mailbox *mb)
|
|||
return NULL;
|
||||
|
||||
INIT_WORK(&mb_chann->rx_work, mailbox_rx_worker);
|
||||
mb_chann->work_q = create_singlethread_workqueue(MAILBOX_NAME);
|
||||
mb_chann->work_q = alloc_ordered_workqueue(MAILBOX_NAME, WQ_MEM_RECLAIM);
|
||||
if (!mb_chann->work_q) {
|
||||
MB_ERR(mb_chann, "Create workqueue failed");
|
||||
goto free_chann;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user