Skip to content

Commit

Permalink
adb_probe_task: remove unneeded flush_signals() call
Browse files Browse the repository at this point in the history
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 <oleg@tv-sign.ru>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 16, 2007
1 parent 4210df2 commit 1b6dd9b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/macintosh/adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1b6dd9b

Please sign in to comment.