From: Oleg Nesterov Date: Mon, 16 Jul 2007 06:41:29 +0000 (-0700) Subject: adb_probe_task: remove unneeded flush_signals() call X-Git-Tag: v2.6.23-rc1~832 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b6dd9baa728d8ef329cc9a7e73e511e29055856;p=linux-2.6-omap-h63xx.git 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 Acked-by: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index adfea3c7c62..bc77c5e2ca9 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c @@ -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; }