SMP: ISR disable/enable vs. mutual exclustion

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 20 17:13:31 UTC 2013


On 2013-08-20 17:56, Gedare Bloom wrote:
> How much space overhead is the ISR lock? I prefer the solution (1) if
> the overhead is not that much.

This is CPU specific.  For a ticket lock you need two unsigned integers, 
e.g. 8 bytes on ARM and PowerPC.  A chain control has 12 bytes without 
the lock.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list