lkml.org 
[lkml]   [1999]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: spin_trylock broken on UP?
Charles 'Buck' Krasic wrote:
>
> Conceptually, I think my code is valid. Am I missing an obvious
> reason why spin_trylock shouldn't be allowed from an interrupt?
>
spin_trylock() is a nop on UP builds. That's a feature, otherwise we
would need full spinlocks even on uniprocessors builds.

If you really need it then look at linux/net/ipv4/icmp.c.

--
Manfred

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