From 922816000f0fb37b8c54caebfeb7246d015d1b24 Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Tue, 22 Jan 2008 18:43:03 +0000 Subject: Prepare for V4.7.1 release. git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@130 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/tasks.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/tasks.c') diff --git a/Source/tasks.c b/Source/tasks.c index a605b99f..3a4c8ce7 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -1213,7 +1213,11 @@ signed portBASE_TYPE xAlreadyYielded = pdFALSE; /* As we have processed some ticks it is appropriate to yield to ensure the highest priority task that is ready to run is the task actually running. */ - xYieldRequired = pdTRUE; + #if configUSE_PREEMPTION == 1 + { + xYieldRequired = pdTRUE; + } + #endif } if( ( xYieldRequired == pdTRUE ) || ( xMissedYield == pdTRUE ) ) @@ -1985,7 +1989,7 @@ tskTCB *pxNewTCB; /* Adjust the mutex holder state to account for its new priority. */ listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), configMAX_PRIORITIES - ( portTickType ) pxCurrentTCB->uxPriority ); - /* If the task being modified is in the read state it will need to + /* If the task being modified is in the ready state it will need to be moved in to a new list. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxTCB->uxPriority ] ), &( pxTCB->xGenericListItem ) ) ) { -- cgit v1.2.3