lkml.org 
[lkml]   [2013]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [uclinux-dist-devel] [GIT PULL] Blackfin updates for 3.11
From
On Mon, Jul 15, 2013 at 10:28 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
>
> but the first one is non-trivial: using xchg() on atomic_t is a bit gross...

It's also broken. There's no guarantee that an "atomic_t" is just a
value. Now, the old sparc32 stuff (which hid lock bits in atomic_t)
may be gone, but it's still the case that atomic_t may not actually
work with xchg.

(In *practice* it works on normal architectures, so I'm not saying
that we don't have it, but it's a bug if we do).

There are "atomic_xchg()" and "atomic_xchg64()" functions that are supported.

Linus


\
 
 \ /
  Last update: 2013-07-15 20:21    [W:0.241 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site