Commit e0f2f18e authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

unisys: use kthread_should_stop API in the lib thread

convert the users of should_stop into using kthread_should_stop API.

Cc: Ken Cox <jkc@redhat.com>
Cc: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 010c9f8e
......@@ -1292,7 +1292,7 @@ static int process_incoming(void *v)
}
}
}
if (incoming_ti.should_stop)
if (kthread_should_stop())
break;
}
if (new_tail != NULL) {
......@@ -1309,7 +1309,7 @@ static int process_incoming(void *v)
* - there is no input waiting on any of the channels
* - we have received a signal to stop this thread
*/
if (incoming_ti.should_stop)
if (kthread_should_stop())
break;
if (en_smart_wakeup == 0xFF) {
LOGINF("en_smart_wakeup set to 0xff, to force exiting process_incoming");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment