lkml.org 
[lkml]   [2009]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.6.32-rc1
Linus Torvalds wrote:
> On Wed, 30 Sep 2009, Stefan Richter wrote:
>> As long as it can't be turned into an atomic access, shouldn't cmpxchg64
>> be hidden from the common kernel coder? Almost everybody will assume
>> that it is an atomic operation and happily use it in unsafe places.
>
> But it _is_ atomic. We don't support SMP on the platforms that we have to
> do it with emulation on.
>
> There's a theoretical problem with NMI, but it's not one we can solve or
> that is really all that interesting, so might as well ignore it.

Ah, right, I could have taken a hint from /* disable interrupts */ in
Arjan's cmpxchg8b_emu.
--
Stefan Richter
-=====-==--= =--= ====-
http://arcgraph.de/sr/


\
 
 \ /
  Last update: 2009-09-30 19:43    [W:0.090 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site