Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934154Ab2EYWGZ (ORCPT ); Fri, 25 May 2012 18:06:25 -0400 Received: from a.ns.miles-group.at ([95.130.255.143]:47845 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934114Ab2EYWFH (ORCPT ); Fri, 25 May 2012 18:05:07 -0400 From: Richard Weinberger To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Richard Weinberger , Guan Xuetao Subject: [PATCH 19/20] unicore32: Do not call try_to_freeze() in do_signal() Date: Sat, 26 May 2012 00:04:35 +0200 Message-Id: <1337983476-22081-19-git-send-email-richard@nod.at> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1337983476-22081-1-git-send-email-richard@nod.at> References: <1337983476-22081-1-git-send-email-richard@nod.at> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1372 Lines: 47 get_signal_to_deliver() already calls try_to_freeze(), there is no need to call it directly. Cc: Guan Xuetao Signed-off-by: Richard Weinberger --- arch/unicore32/kernel/signal.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/arch/unicore32/kernel/signal.c b/arch/unicore32/kernel/signal.c index d25ddd8..1ee603e 100644 --- a/arch/unicore32/kernel/signal.c +++ b/arch/unicore32/kernel/signal.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -400,9 +399,6 @@ static void do_signal(struct pt_regs *regs, int syscall) if (!user_mode(regs)) return; - if (try_to_freeze()) - goto no_signal; - signr = get_signal_to_deliver(&info, &ka, regs, NULL); if (signr > 0) { sigset_t *oldset; @@ -425,7 +421,6 @@ static void do_signal(struct pt_regs *regs, int syscall) return; } - no_signal: /* * No signal to deliver to the process - restart the syscall. */ -- 1.7.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/