]> git.sur5r.net Git - freertos/blobdiff - Source/list.c
Update Fujitsu port files - work in progress.
[freertos] / Source / list.c
index e5ca6aa6dddf7339b81f3366ef5f214626dbc8cf..66cba833373a29041add9d85e823e5f691ff424f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.0.2 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.7.1 - Copyright (C) 2003-2008 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
        can be applied.\r
 \r
        ***************************************************************************\r
-       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
+       Please ensure to read the configuration and relevant port sections of the \r
+       online documentation.\r
+\r
+       +++ http://www.FreeRTOS.org +++\r
+       Documentation, latest information, license and contact details.  \r
+\r
+       +++ http://www.SafeRTOS.com +++\r
+       A version that is certified for use in safety critical systems.\r
+\r
+       +++ http://www.OpenRTOS.com +++\r
+       Commercial support, development, porting, licensing and training services.\r
+\r
        ***************************************************************************\r
 */\r
 \r
@@ -71,6 +81,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 +163,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