[UPSTREAM] Attempt at improving ADC access
andy at openmoko.com
Thu Oct 16 10:36:27 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| 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
|> 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 ?
| Please explain.
The explanation is you are quite right... it should lock interrupts in
the add to queue thing. Maybe you can take care of this?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel