USB: usbatm: convert heavy init dances to kthread API
This is an attempt to kill two birds with one stone. First, we kill one more user of kernel_thread, which is scheduled for removal. Second - we kill one of the last users of kill_proc - the function which is also to be removed, because it uses a pid_t which is not safe now. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Duncan Sands <baldrick@free.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1409e8e0e4
commit
c4504a7eb9
@ -175,7 +175,7 @@ struct usbatm_data {
|
||||
int disconnected;
|
||||
|
||||
/* heavy init */
|
||||
int thread_pid;
|
||||
struct task_struct *thread;
|
||||
struct completion thread_started;
|
||||
struct completion thread_exited;
|
||||
|
||||
|
Reference in New Issue
Block a user