diff --git a/arch/arm/src/common/up_unblocktask.c b/arch/arm/src/common/up_unblocktask.c index 32176f152e..6f7afab7be 100644 --- a/arch/arm/src/common/up_unblocktask.c +++ b/arch/arm/src/common/up_unblocktask.c @@ -102,7 +102,7 @@ void up_unblock_task(_TCB *tcb) */ #if CONFIG_RR_INTERVAL > 0 - tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC; + tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_TICK; #endif /* Add the task in the correct location in the prioritized diff --git a/arch/pjrc-8051/src/up_unblocktask.c b/arch/pjrc-8051/src/up_unblocktask.c index 2f242fe0fb..76bc693c97 100644 --- a/arch/pjrc-8051/src/up_unblocktask.c +++ b/arch/pjrc-8051/src/up_unblocktask.c @@ -42,6 +42,7 @@ #include #include #include +#include "clock_internal.h" #include "os_internal.h" #include "up_internal.h" @@ -101,7 +102,7 @@ void up_unblock_task(FAR _TCB *tcb) */ #if CONFIG_RR_INTERVAL > 0 - tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC; + tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_TICK; #endif /* Add the task in the correct location in the prioritized diff --git a/arch/sim/src/up_unblocktask.c b/arch/sim/src/up_unblocktask.c index b17fd4d483..bf25a14a54 100644 --- a/arch/sim/src/up_unblocktask.c +++ b/arch/sim/src/up_unblocktask.c @@ -42,6 +42,7 @@ #include #include #include +#include "clock_internal.h" #include "os_internal.h" #include "up_internal.h" @@ -100,7 +101,7 @@ void up_unblock_task(_TCB *tcb) */ #if CONFIG_RR_INTERVAL > 0 - tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC; + tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_TICK; #endif /* Add the task in the correct location in the prioritized