linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yong Zhang <yong.zhang0@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <ddaney.cavm@gmail.com>,
	linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org,
	david.daney@cavium.com, tglx@linutronix.de
Subject: Re: [PATCH -rt] MIPS: Octeon: convert smp_reserve_lock to raw spinlock
Date: Fri, 18 May 2012 10:29:32 +0800	[thread overview]
Message-ID: <20120518022932.GA6003@zhy> (raw)
In-Reply-To: <20120517205003.GE16397@linux-mips.org>

On Thu, May 17, 2012 at 10:50:03PM +0200, Ralf Baechle wrote:
> On Thu, May 17, 2012 at 09:30:42AM -0700, David Daney wrote:
> > Date:   Thu, 17 May 2012 09:30:42 -0700
> > From: David Daney <ddaney.cavm@gmail.com>
> > To: Yong Zhang <yong.zhang0@gmail.com>, ralf@linux-mips.org
> > CC: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org,
> >  david.daney@cavium.com, tglx@linutronix.de
> > Subject: Re: [PATCH -rt] MIPS: Octeon: convert smp_reserve_lock to raw
> >  spinlock
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > 
> > On 05/17/2012 03:15 AM, Yong Zhang wrote:
> > >From: Yong Zhang<yong.zhang@windriver.com>
> > >
> > >Because __cpu_disable is called in atomic context and spinlock
> > >is a mutex on -rt.
> > >
> > >Signed-off-by: Yong Zhang<yong.zhang0@gmail.com>
> > >---
> > >  arch/mips/cavium-octeon/smp.c |    6 +++---
> > >  1 files changed, 3 insertions(+), 3 deletions(-)
> > >
> > >diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c
> > >index ef9c34a..473c72b 100644
> > >--- a/arch/mips/cavium-octeon/smp.c
> > >+++ b/arch/mips/cavium-octeon/smp.c
> > >@@ -257,7 +257,7 @@ DEFINE_PER_CPU(int, cpu_state);
> > >
> > >  extern void fixup_irqs(void);
> > >
> > >-static DEFINE_SPINLOCK(smp_reserve_lock);
> > >+static DEFINE_RAW_SPINLOCK(smp_reserve_lock);
> > >
> > 
> > Ralf added this in 773cb77d (MIPS: Cavium: Add CPU hotplugging code.)
> > 
> > I'm not even sure what this lock is supposed to be protecting, so I
> > would like Ralf to take a look.
> > 
> > You can add an Acked-by: from me for either this patch as is, or if
> > Ralf thinks it is OK, removing the lock entirely.
> > 
> > In any event we can merge this via Ralf's tree.
> 
> The 773cb77d patch has a long history but I think I first worked on it for
> Wind River Linux 2.0 which was 2.6.21-based, then broke it out and pushed
> it upstream.  In 2.6.21 it was probably infected by the the smp_reserve_lock
> virus in the s390 code for no good reason.  So I agree, the lock can
> be dropped and I'm queueing a patch to do so for 3.5.

I'm OK with dropping it ;-)

Thanks,
Yong

      reply	other threads:[~2012-05-18  2:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17 10:15 [PATCH -rt] MIPS: Octeon: convert smp_reserve_lock to raw spinlock Yong Zhang
2012-05-17 16:30 ` David Daney
2012-05-17 20:50   ` Ralf Baechle
2012-05-18  2:29     ` Yong Zhang [this message]

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=20120518022932.GA6003@zhy \
    --to=yong.zhang0@gmail.com \
    --cc=david.daney@cavium.com \
    --cc=ddaney.cavm@gmail.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;
as well as URLs for NNTP newsgroup(s).