All of lore.kernel.org
 help / color / mirror / Atom feed
* blackfin - cmpxchg not atomic ?
@ 2007-07-20 20:28 Mathieu Desnoyers
  2007-07-20 20:36 ` Mike Frysinger
  2007-07-23 17:24 ` Robin Getz
  0 siblings, 2 replies; 7+ messages in thread
From: Mathieu Desnoyers @ 2007-07-20 20:28 UTC (permalink / raw)
  To: tonyko, robin.getz; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-23 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20 20:28 blackfin - cmpxchg not atomic ? Mathieu Desnoyers
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.