spin_lock doesn't work?!?

melinda develey melinda.develey70 at yahoo.com
Thu Aug 30 16:30:22 EST 2007

  >You should still put the spin_lock calls into your code because >you
>never know if someone else will compile it and for another >target. If
>someone would, for example, compile the same code for a SMP >machine then
>the spin_lock will actually lock.

  I used the spinlock both in an interrupt handler to protect a group of variables (because in an interrupt I can't use a semaphore) and the same spinlock in a ioctl handler where the same group of variables is accessed. Is this wrong? I have a linux kernel.
  Thank you,

Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070829/198fd1bc/attachment.htm 

More information about the Linuxppc-embedded mailing list