Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e20db2a authored by Nitesh Gupta's avatar Nitesh Gupta
Browse files

msm: mhi_dev: add WQ_UNBOUND and set max_active for mhi_sm_wq



Workqueue tasks can be executed in the order in which
they are submitted using a WQ_UNBOUND workqueue with
max_active set to one. Adding these properties for mhi_sm_wq
so that all MHI change events are handled in order.

Change-Id: Ic86a81adb379f711d787cd40dfad4a4a8f6e961d
Signed-off-by: default avatarNitesh Gupta <nitegupt@codeaurora.org>
parent f49a073b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1102,7 +1102,8 @@ int mhi_dev_sm_init(struct mhi_dev *mhi_dev)

	/*init debugfs*/
	mhi_sm_debugfs_init();
	mhi_sm_ctx->mhi_sm_wq = alloc_workqueue("mhi_sm_wq", WQ_HIGHPRI, 0);
	mhi_sm_ctx->mhi_sm_wq = alloc_workqueue(
				"mhi_sm_wq", WQ_HIGHPRI | WQ_UNBOUND, 1);
	if (!mhi_sm_ctx->mhi_sm_wq) {
		MHI_SM_ERR("Failed to create singlethread_workqueue: sm_wq\n");
		res = -ENOMEM;