From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: tonyko@lineo.ca, robin.getz@analog.com
Cc: linux-kernel@vger.kernel.org
Subject: blackfin - cmpxchg not atomic ?
Date: Fri, 20 Jul 2007 16:28:08 -0400 [thread overview]
Message-ID: <20070720202807.GA15009@Krystal> (raw)
Hello,
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 ?
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.
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 ?
Mathieu
--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next reply other threads:[~2007-07-20 20:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 20:28 Mathieu Desnoyers [this message]
2007-07-20 20:36 ` Mike Frysinger
2007-07-20 20:45 ` Mathieu Desnoyers
2007-07-20 20:59 ` Mike Frysinger
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=20070720202807.GA15009@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.getz@analog.com \
--cc=tonyko@lineo.ca \
/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®