aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-07-16 02:41:29 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:50 -0400
commit1b6dd9baa728d8ef329cc9a7e73e511e29055856 (patch)
tree6f599bef9231f4556df11bd3314c5b6d73d72b96 /drivers/macintosh
parent4210df283cc703bc494f450c91b8311bdf7fe5ee (diff)
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 <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>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/adb.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index adfea3c7c62a..bc77c5e2ca9f 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -248,21 +248,15 @@ static int adb_scan_bus(void)
248static int 248static int
249adb_probe_task(void *x) 249adb_probe_task(void *x)
250{ 250{
251 sigset_t blocked;
252
253 strcpy(current->comm, "kadbprobe"); 251 strcpy(current->comm, "kadbprobe");
254 252
255 sigfillset(&blocked);
256 sigprocmask(SIG_BLOCK, &blocked, NULL);
257 flush_signals(current);
258
259 printk(KERN_INFO "adb: starting probe task...\n"); 253 printk(KERN_INFO "adb: starting probe task...\n");
260 do_adb_reset_bus(); 254 do_adb_reset_bus();
261 printk(KERN_INFO "adb: finished probe task...\n"); 255 printk(KERN_INFO "adb: finished probe task...\n");
262 256
263 adb_probe_task_pid = 0; 257 adb_probe_task_pid = 0;
264 up(&adb_probe_mutex); 258 up(&adb_probe_mutex);
265 259
266 return 0; 260 return 0;
267} 261}
268 262