[UPSTREAM] Attempt at improving ADC access
balajirrao at openmoko.org
Thu Oct 16 09:37:16 CEST 2008
On Thu, Oct 16, 2008 at 12:18:50AM +0100, Andy Green wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Somebody in the thread at some point said:
> | Also, don't the queue head/tail manipulation functions require locking ?
> When I wrote them I recall coming to the idea that no locking is needed
> because each of the "threads" only controls the head or the tail
Hmm.. I don't understand. Since the queue update statement is not
atomic, it could be preempted anywhere 'in between' by an interrupt
handler which might also want to add to the queue. This can lead
to problems. Isn't it? Is there any reason why this can't happen ?
More information about the openmoko-kernel