From: Devendra Naga Date: Thu, 19 Feb 2015 19:08:33 +0000 (-0500) Subject: unisys: use kthread_should_stop API in the lib thread X-Git-Tag: firefly_0821_release~176^2~1998^2~138^2~855 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e0f2f18eb2e856ac8fd7efc6af0671c1fdc50e69;p=firefly-linux-kernel-4.4.55.git 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 Cc: Benjamin Romer Signed-off-by: Devendra Naga Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/staging/unisys/uislib/uislib.c index 77bf24761e05..6d2432bed267 100644 --- a/drivers/staging/unisys/uislib/uislib.c +++ b/drivers/staging/unisys/uislib/uislib.c @@ -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");