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

Commit 25c89255 authored by Sagar Dharia's avatar Sagar Dharia Committed by Gerrit - the friendly Code Review server
Browse files

slim: ngd: Avoid warning associated with TASK_INTERRUPTIBLE



Use wait_for_event_interruptible instead of setting current task to
TASK_INTERRUPTIBLE to avoid associated warning.

Change-Id: I576959d88ff8278f890ab71963fcec5f547c264d
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent 0363b6c3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1398,8 +1398,7 @@ static int ngd_slim_rx_msgq_thread(void *data)
		int retries = 0;
		u8 wbuf[8];

		set_current_state(TASK_INTERRUPTIBLE);
		wait_for_completion(notify);
		wait_for_completion_interruptible(notify);

		txn.dt = SLIM_MSG_DEST_LOGICALADDR;
		txn.ec = 0;
@@ -1460,8 +1459,7 @@ static int ngd_notify_slaves(void *data)
	}

	while (!kthread_should_stop()) {
		set_current_state(TASK_INTERRUPTIBLE);
		wait_for_completion(&dev->qmi.slave_notify);
		wait_for_completion_interruptible(&dev->qmi.slave_notify);
		/* Probe devices for first notification */
		if (!i) {
			i++;