lkml.org 
[lkml]   [1999]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] possible SMP races all over the place in wait_event interface

On Tue, 24 Aug 1999, David S. Miller wrote:

> This 'merges' the barrier and the write. Or rather, in asm-i386 we could
> do something like:
>
> #define set_mb(addr,val) xchgl(addr,val)
>
> and then use set_barrier().
>
> Sure, but it costs ~8 instructions instead of 2 on ll/sc architectures.

i was not clear enough - this is why i said 'in i386-asm'. Other (saner)
architectures can use normal writes and sane barriers.

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.050 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site