diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-20 15:43:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-20 15:43:53 +0000 |
commit | 14a668aeb4737d86fb27a88ca13d85590d695c7c (patch) | |
tree | 6ce96e7edc2757212935b93f1e220a4673933f12 /nuttx/sched/sched_processtimer.c | |
parent | b1877fc48db3c0f6b2cdaa82408e6dd22367bae6 (diff) | |
download | px4-nuttx-14a668aeb4737d86fb27a88ca13d85590d695c7c.tar.gz px4-nuttx-14a668aeb4737d86fb27a88ca13d85590d695c7c.tar.bz2 px4-nuttx-14a668aeb4737d86fb27a88ca13d85590d695c7c.zip |
Fix timeslice calculation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@232 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_processtimer.c')
-rw-r--r-- | nuttx/sched/sched_processtimer.c | 2 |
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 |