[PATCH 2/5] unisys: use simpler kthread_ API

2015-02-19 Thread Benjamin Romer
From: Devendra Naga 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

[RFC PATCH 2/5] unisys: use simpler kthread_ API

2015-01-21 Thread Devendra Naga
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 sh

[PATCH 2/5] unisys: use simpler kthread_ API

2015-01-21 Thread Devendra Naga
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 sh