lkml.org 
[lkml]   [1999]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] 2.3.6 alpha fixes
David S. Miller wrote:
> #define spin_trylock(lock) ((int) 0)
>
> No, on uniprocessor it must always return true, indicating that you
> have acquired the lock :-)

For the record as of 2.3.7pre2-dangerous this seems to be broken on
multiple archs:

alpha: #define spin_trylock(lock) ((void) 0)
arm: #define spin_trylock(lock) do { } while(0)
m68k: #define spin_trylock(lock) do { } while(0)
ppc: #define spin_trylock(lock) do { } while(0)
sparc: #define spin_trylock(lock) do { } while(0)
sparc64: #define spin_trylock(lock) do { } while(0)

i386 and mips seem to get it right (i.e. "(1)")

-Mitch

-
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:52    [W:0.057 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site