Philip Blundell writes:
> First I tried changing `orrls' to `orrle' in the implementation of up() which 
> seemed to improve things but not actually make everything work.  I've appended 
> below the patch that I ended up using which seems to do the trick but isn't 
> very optimal.

Unfortunately, there is one rather big pitfall - the operation is no longer
atomic.  Both the increment and the test must be done atomically wrt the
other atomic functions.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |  http://www.arm.linux.org.uk/~rmk/armlinux.html    /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to