OSDN Git Service

unisys: use simpler kthread_ API
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 19 Feb 2015 19:08:31 +0000 (14:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Feb 2015 01:23:46 +0000 (17:23 -0800)
commit18216fefbe26e95189c6628fde731ff1b239a7f6
tree90a86bbbbacbd1362115e2c5db658d130fa02099
parent31c9b9cf40f8f03f6a7484f2c06c5eb31b3735ce
unisys: use simpler kthread_ API

The code does the checks on should_stop variable in the kernel
threads. The uisthread_stop function sets the should_stop and calls
KILL (eventually kill_pid) to stop the thread.

The checking of should_stop variable can be replaced to a call to
kthread_should_stop function and the setting of the should_stop and
a call to KILL can be replaced with kthread_stop function.

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/uisthread.c