mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier.adi@gmail.com>
To: "Mathieu Desnoyers" <mathieu.desnoyers@polymtl.ca>,
	"Bernd Schmidt" <bernds_cb1@t-online.de>
Cc: robin.getz@analog.com, linux-kernel@vger.kernel.org
Subject: Re: blackfin - cmpxchg not atomic ?
Date: Fri, 20 Jul 2007 16:59:35 -0400	[thread overview]
Message-ID: <8bd0f97a0707201359m41d91098qf35d462d4a9c9071@mail.gmail.com> (raw)
In-Reply-To: <20070720204507.GA15760@Krystal>

On 7/20/07, Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
> * Mike Frysinger (vapier.adi@gmail.com) wrote:
> > On 7/20/07, Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
> > >I am currently passing through each architectures adding a
> > >cmpxchg_local() to each system.h, and I notice that you disable
> > >interrupts in your cmpxchg() implementation, why are you doing so ?
> >
> > because Blackfin lacks any atomic instructions
> >
> > >Also, does you assembly stub _really_ modify memory atomically ? If yes,
> > >then there should be no need for disabling interrupts. Else, I see a
> > >major problem with SMP.
> >
> > that isnt the only problem with SMP on Blackfin
> >
> > >I also don't like the comment in asm-blackfin/atomic.h :
> > >
> > > * Generally we do not concern about SMP BFIN systems, so we don't have
> > > * to deal with that.
> > >
> > >I have seen on the blackfin website that you actually sell a board with
> > >SMP. Why aren't you caring about it ?
> >
> > just because a processor has more than one core does not make it SMP
>
> I see, thanks for the reply. Is there a particular reason for
> implementing system.h/cmpxchg() in assembly rather that in plain C then?

honestly ?  probably not :)

Bernd would probably know best (he's good like that)
-mike

  reply	other threads:[~2007-07-20 20:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-20 20:28 Mathieu Desnoyers
2007-07-20 20:36 ` Mike Frysinger
2007-07-20 20:45   ` Mathieu Desnoyers
2007-07-20 20:59     ` Mike Frysinger [this message]
2007-07-21  7:29   ` Robert Schwebel
2007-07-21  8:37     ` Mike Frysinger
2007-07-23 17:24 ` Robin Getz

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=8bd0f97a0707201359m41d91098qf35d462d4a9c9071@mail.gmail.com \
    --to=vapier.adi@gmail.com \
    --cc=bernds_cb1@t-online.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@polymtl.ca \
    --cc=robin.getz@analog.com \
    /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®