]> git.sur5r.net Git - freertos/blobdiff - Source/list.c
Update to V4.3.0 as described in http://www.FreeRTOS.org/History.txt
[freertos] / Source / list.c
index 768eb21d259d7b65ffd58ec8ba918ea1dbb61b1d..503c320dad14cfe34589d4fe86cd503288664e83 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.0.4 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
@@ -27,6 +27,9 @@
        See http://www.FreeRTOS.org for documentation, latest information, license\r
        and contact details.  Please ensure to read the configuration and relevant\r
        port sections of the online documentation.\r
+\r
+       Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along\r
+       with commercial development and support options.\r
        ***************************************************************************\r
 */\r
 \r
@@ -71,6 +74,11 @@ Changes from V3.2.4
 \r
        + Changed the volatile definitions of some structure members to clean up\r
          the code where the list structures are used.\r
+\r
+Changes from V4.0.4\r
+\r
+       + Optimised vListInsert() in the case when the wake time is the maximum \r
+         tick count value.\r
 */\r
 \r
 #include <stdlib.h>\r
@@ -148,11 +156,7 @@ portTickType xValueOfInsertion;
        algorithm slightly if necessary. */\r
        if( xValueOfInsertion == portMAX_DELAY )\r
        {\r
-               for( pxIterator = ( xListItem * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue < xValueOfInsertion; pxIterator = pxIterator->pxNext )\r
-               {\r
-                       /* There is nothing to do here, we are just iterating to the\r
-                       wanted insertion position. */\r
-               }\r
+               pxIterator = pxList->xListEnd.pxPrevious;\r
        }\r
        else\r
        {\r