mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Katsuya Matsubara <matsu@igel.co.jp>
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Cc: Steven Rostedt <srostedt@redhat.com>, Ingo Molnar <mingo@elte.hu>,
	Thomas Gleixner <tglx@linutronix.de>,
	Paul Mundt <lethal@linux-sh.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Katsuya Matsubara <matsu@igel.co.jp>
Subject: [PATCH RT 2/4] sh: enable interrupts in signal handling
Date: Thu, 12 Feb 2009 00:01:41 +0900	[thread overview]
Message-ID: <1234364503-857-3-git-send-email-matsu@igel.co.jp> (raw)
In-Reply-To: <1234364503-857-2-git-send-email-matsu@igel.co.jp>

Fully-preemptible kernel does not need interrupts disabled in signal
handling. The same treatment can be found in x86 and arm code.

Signed-off-by: Katsuya Matsubara <matsu@igel.co.jp>
---
 arch/sh/kernel/signal_32.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c
index 6d6e408..9f633b5 100644
--- a/arch/sh/kernel/signal_32.c
+++ b/arch/sh/kernel/signal_32.c
@@ -571,6 +571,13 @@ static void do_signal(struct pt_regs *regs, unsigned int save_r0)
 	struct k_sigaction ka;
 	sigset_t *oldset;
 
+#ifdef CONFIG_PREEMPT_RT
+	/*
+	* Fully-preemptible kernel does not need interrupts disabled:
+	*/
+	local_irq_enable();
+	preempt_check_resched();
+#endif
 	/*
 	 * We want the common case to go fast, which
 	 * is why we may in certain cases get here from
-- 
1.6.1


  reply	other threads:[~2009-02-11 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 15:01 [PATCH RT 0/4] sh arch support for 2.6.28-rt Katsuya Matsubara
2009-02-11 15:01 ` [PATCH RT 1/4] sh: use __preempt_enable_no_resched in cpu_idle() Katsuya Matsubara
2009-02-11 15:01   ` Katsuya Matsubara [this message]
2009-02-11 15:01     ` [PATCH RT 3/4] sh: decouple the pagefault-disabled logic Katsuya Matsubara
2009-02-11 15:01       ` [PATCH RT 4/4] convert-locks-list: add sh specific spin locks Katsuya Matsubara
2009-02-11 15:16 ` [PATCH RT 0/4] sh arch support for 2.6.28-rt Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1234364503-857-3-git-send-email-matsu@igel.co.jp \
    --to=matsu@igel.co.jp \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=srostedt@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®