Staging: rt2870: Removal of kernel_thread() API
authorPeter Teoh <htmldeveloper@gmail.com>
Fri, 20 Mar 2009 18:20:23 +0000 (02:20 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:31 +0000 (14:53 -0700)
commitd44ca7af9e79abf4e80514583734cffed1117ee1
tree8d4bf6b25c63f892074f086f0aacf5034fdfe831
parenta955dc39c0dd14e7f85c3d288478294fa133ea90
Staging: rt2870: Removal of kernel_thread() API

Replacing the use of kernel_thread() with kthread_run().   But as
kthread_run() returned a task structure, as compared with
kernel_thread() returning a PID, it was found to be more efficient to
store the task structure pointer as a field data instead of PID
pointer.   On top of modifying the field to store task structure
pointer, the initialization of the field (assigned to
THREAD_PID_INIT_VALUE) was also found unnecessary - as no where it is
found to be used.

Signed-off-by: Peter Teoh <htmldeveloper@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2870/2870_main_dev.c
drivers/staging/rt2870/common/2870_rtmp_init.c
drivers/staging/rt2870/common/cmm_data.c
drivers/staging/rt2870/common/rtmp_init.c
drivers/staging/rt2870/common/rtusb_io.c
drivers/staging/rt2870/rt2870.h
drivers/staging/rt2870/rt_linux.h