[PATCH] kill mutex in lis

Andy Green andy at openmoko.com
Sat Oct 11 20:28:16 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sean McNeil wrote:
> I'd like to also remind again that the 2 accelerometers are mutually
> exclusive so they will have to block each other with a mutex or spin
> lock. This brings up a question I have about the original changes: why
> convert the mutex to a spin lock? What is the benefit? Is it because
> there is an acquire in an ISR?

Holger's patch is not to the point in this case I think we find.  It's
the SPI APIs that have trouble operating during interrupts off, not us.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjw8EAACgkQOjLpvpq7dMosbQCfQ3ErmT254vqFfyyBz4MlJmxB
e2YAoI3qER0u2YgOyH1FFr/en3sb0ewy
=qxL5
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list