Those macroes are just fine, except the spin_trylock()
which must be as follows:
#define spin_trylock(lock) ((int) 0)
No, on uniprocessor it must always return true, indicating that you
have acquired the lock :-)
Later,
David S. Miller
davem@redhat.com
-
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/