[PATCH 04/12] score: Add _Chain_Insert_ordered_unprotected()

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jun 13 18:41:09 UTC 2013

On 13/06/13 20:31, Gedare Bloom wrote:
> Yes. It implements a sorted linked list, decrementing the timeout of
> the insert node by the timeout of each node on the chain until it
> reaches 0 or the tail. Off the top of my head, I think it would be
> possible to use this new Insert function with a comparison hook that
> implements the decrement + comparison. Although I don't know if
> rewriting the watchdog function is such a good idea, "if it ain't
> broke, don't fix it"

The delta chain handling is quite complex.  You have several state 
transitions to keep the interrupt disabled time low.  During the insert 
interrupt service routines can add and remove items.

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