diff options
Diffstat (limited to 'nuttx/arch/pjrc-8051/src/up_unblocktask.c')
-rw-r--r-- | nuttx/arch/pjrc-8051/src/up_unblocktask.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_unblocktask.c b/nuttx/arch/pjrc-8051/src/up_unblocktask.c index 2f242fe0f..76bc693c9 100644 --- a/nuttx/arch/pjrc-8051/src/up_unblocktask.c +++ b/nuttx/arch/pjrc-8051/src/up_unblocktask.c @@ -42,6 +42,7 @@ #include <sched.h> #include <debug.h> #include <nuttx/arch.h> +#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 |