You are correct. You can also use cmpxchg in a loop. Basically, some
instructions imply a lock without the lock prefix. The point is on SMP
you have to use one of those, rather than a non-locked single
instruction which is safe if there's only one device accessing the memory.
-- Jamie
-
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/