unisys: use kthread_should_stop API in the lib thread
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 19 Feb 2015 19:08:33 +0000 (14:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Feb 2015 01:24:13 +0000 (17:24 -0800)
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: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/uislib/uislib.c

index 77bf24761e05b6c291e7f5afb73215fbead41341..6d2432bed2672a60cb09ea74c465479b6092b1c4 100644 (file)
@@ -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");