Re: [PATCH 01/11] MFD: DA9052 MFD core module v2

From: Mark Brown
Date: Sat Jul 23 2011 - 06:43:46 EST


On Sat, Jul 23, 2011 at 11:50:30AM +0200, Arnd Bergmann wrote:

> Yes, that makes sense. There are also cases where a mutex should really
> be a spinlock (which is by definition not interruptible), or vice
> versa. I don't know if this is one of them.

We would be using spinlocks except the underlying buses sleep waiting
for the hardware to complete the transfer - the operations are quick
enough from a user perspective but at the very low level we want the CPU
to be able to go off and do other things while they're happening.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/