summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_processtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_processtimer.c')
-rw-r--r--nuttx/sched/sched_processtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sched_processtimer.c b/nuttx/sched/sched_processtimer.c
index 186de78d2..6cbca4776 100644
--- a/nuttx/sched/sched_processtimer.c
+++ b/nuttx/sched/sched_processtimer.c
@@ -103,7 +103,7 @@ static void sched_process_timeslice(void)
{
/* Reset the timeslice in any case. */
- rtcb->timeslice = CONFIG_RR_INTERVAL;
+ rtcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_TICK;
/* We know we are at the head of the ready to run
* prioritized list. We must be the highest priority