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:
parent
9c280a74c5
commit
b157bb76a1
@ -101,7 +101,7 @@ void up_unblock_task(_TCB *tcb)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
tcb->timeslice = CONFIG_RR_INTERVAL;
|
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add the task in the correct location in the prioritized
|
/* Add the task in the correct location in the prioritized
|
||||||
|
@ -101,7 +101,7 @@ void up_unblock_task(_TCB *tcb)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
tcb->timeslice = CONFIG_RR_INTERVAL;
|
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add the task in the correct location in the prioritized
|
/* Add the task in the correct location in the prioritized
|
||||||
|
@ -100,7 +100,7 @@ void up_unblock_task(_TCB *tcb)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
tcb->timeslice = CONFIG_RR_INTERVAL;
|
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add the task in the correct location in the prioritized
|
/* Add the task in the correct location in the prioritized
|
||||||
|
@ -101,7 +101,7 @@ void up_unblock_task(FAR _TCB *tcb)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
tcb->timeslice = CONFIG_RR_INTERVAL;
|
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add the task in the correct location in the prioritized
|
/* Add the task in the correct location in the prioritized
|
||||||
|
@ -100,7 +100,7 @@ void up_unblock_task(_TCB *tcb)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
tcb->timeslice = CONFIG_RR_INTERVAL;
|
tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Add the task in the correct location in the prioritized
|
/* Add the task in the correct location in the prioritized
|
||||||
|
Loading…
Reference in New Issue
Block a user