Fix timeslice calculation

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@232 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2007-05-20 15:43:53 +00:00
parent 9c280a74c5
commit b157bb76a1
5 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ void up_unblock_task(_TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
tcb->timeslice = CONFIG_RR_INTERVAL;
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized

View File

@ -101,7 +101,7 @@ void up_unblock_task(_TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
tcb->timeslice = CONFIG_RR_INTERVAL;
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized

View File

@ -100,7 +100,7 @@ void up_unblock_task(_TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
tcb->timeslice = CONFIG_RR_INTERVAL;
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized

View File

@ -101,7 +101,7 @@ void up_unblock_task(FAR _TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
tcb->timeslice = CONFIG_RR_INTERVAL;
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized

View File

@ -100,7 +100,7 @@ void up_unblock_task(_TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
tcb->timeslice = CONFIG_RR_INTERVAL;
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized