mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
adb_probe_task: remove unneeded flush_signals() call
adb_probe_task() is forked by "events" thread, all signals are ignored, no need to play with signal blocking/flushing. Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4210df283c
commit
1b6dd9baa7
1 changed files with 2 additions and 8 deletions
|
|
@ -248,21 +248,15 @@ static int adb_scan_bus(void)
|
|||
static int
|
||||
adb_probe_task(void *x)
|
||||
{
|
||||
sigset_t blocked;
|
||||
|
||||
strcpy(current->comm, "kadbprobe");
|
||||
|
||||
sigfillset(&blocked);
|
||||
sigprocmask(SIG_BLOCK, &blocked, NULL);
|
||||
flush_signals(current);
|
||||
|
||||
printk(KERN_INFO "adb: starting probe task...\n");
|
||||
do_adb_reset_bus();
|
||||
printk(KERN_INFO "adb: finished probe task...\n");
|
||||
|
||||
|
||||
adb_probe_task_pid = 0;
|
||||
up(&adb_probe_mutex);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue