From: Steven Rostedt <rostedt@goodmis.org>
To: David Daney <ddaney.cavm@gmail.com>
Cc: linux-kernel@vger.kernel.org,
linux-rt-users <linux-rt-users@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Carsten Emde <C.Emde@osadl.org>, John Kacur <jkacur@redhat.com>,
Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH RT 3/4] mips-remove-smp-reserve-lock.patch
Date: Thu, 07 Jun 2012 15:32:18 -0400 [thread overview]
Message-ID: <1339097538.13377.11.camel@gandalf.stny.rr.com> (raw)
In-Reply-To: <4FD0FC26.3030101@gmail.com>
On Thu, 2012-06-07 at 12:08 -0700, David Daney wrote:
> > Should it go to mainline stable?
> >
>
> I don't think it is necessary. As far as I know, RT may be the only
> thing that needs it.
Ah, you're right. As this is just an issue because it is called with
interrupts disabled (from stop_machine). Although it's interesting that
the mips code, re-enables interrupts from that function.
>From kernel/cpu.c:
_cpu_down() {
__stop_machine(take_cpu_down, &tcd_param, cpumask_of(cpu));
take_cpu_down() {
err = __cpu_disable();
kernel/stop_machine.c:
__stop_machine(int (*fn)(void *) ...) {
local_irq_save(flags);
hard_irq_disable();
ret = (*fn)(data);
local_irq_restore(flags);
arch/mips/include/asm/smp.h:
static inline int __cpu_disable(void)
{
extern struct plat_smp_ops *mp_ops; /* private */
return mp_ops->cpu_disable();
}
arch/mips/cavium-octeon/smp.c:
octeon_cpu_disable(void) {
local_irq_disable();
fixup_irqs();
local_irq_enable();
struct plat_smp_ops octeon_smp_ops = {
.cpu_disable = octeon_cpu_disable,
Is this expected? It causes the cpu notifiers to be called with
interrupts enabled. Not sure if that's a problem or not.
-- Steve
next prev parent reply other threads:[~2012-06-07 19:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 15:51 [PATCH RT 0/4] [ANNOUNCE] 3.0.33-rt54-rc1 Steven Rostedt
2012-06-07 15:51 ` [PATCH RT 1/4] scsi: qla2xxx: Use local_irq_save_nort() in qla2x00_poll Steven Rostedt
2012-06-07 15:51 ` [PATCH RT 2/4] net,RT:REmove preemption disabling in netif_rx() Steven Rostedt
2012-06-07 15:51 ` [PATCH RT 3/4] mips-remove-smp-reserve-lock.patch Steven Rostedt
2012-06-07 17:50 ` David Daney
2012-06-07 18:56 ` Steven Rostedt
2012-06-07 19:08 ` David Daney
2012-06-07 19:32 ` Steven Rostedt [this message]
2012-06-07 19:47 ` David Daney
2012-06-07 15:51 ` [PATCH RT 4/4] Linux 3.0.33-rt54-rc1 Steven Rostedt
-- strict thread matches above, loose matches on Subject: below --
2012-06-07 15:42 [PATCH RT 0/4] [ANNOUNCE] 3.2.19-rt31-rc1 Steven Rostedt
2012-06-07 15:42 ` [PATCH RT 3/4] mips-remove-smp-reserve-lock.patch 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=1339097538.13377.11.camel@gandalf.stny.rr.com \
--to=rostedt@goodmis.org \
--cc=C.Emde@osadl.org \
--cc=ddaney.cavm@gmail.com \
--cc=jkacur@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=ralf@linux-mips.org \
--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®