diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-08-26 23:39:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-08-26 23:39:06 +0000 |
commit | f44dd91da88f5a366f9c61c6769e108e3ccc547b (patch) | |
tree | b0b1884ff042efc5f30caee8a98636f1949d7511 /nuttx/arch | |
parent | 73c7e9963348ec8b964adf5e9df1876a9494b382 (diff) | |
download | px4-nuttx-f44dd91da88f5a366f9c61c6769e108e3ccc547b.tar.gz px4-nuttx-f44dd91da88f5a366f9c61c6769e108e3ccc547b.tar.bz2 px4-nuttx-f44dd91da88f5a366f9c61c6769e108e3ccc547b.zip |
Fix timeslice calculation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@311 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/c5471/src/up_unblocktask.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/arch/c5471/src/up_unblocktask.c b/nuttx/arch/c5471/src/up_unblocktask.c index 0d7f91ca5..b12f8a98c 100644 --- a/nuttx/arch/c5471/src/up_unblocktask.c +++ b/nuttx/arch/c5471/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" @@ -97,11 +98,11 @@ void up_unblock_task(_TCB *tcb) sched_removeblocked(tcb); /* Reset its timeslice. This is only meaningful for round - * robin tasks but it doesn't here to do it for everything + * robin tasks but it doesn't hurt to do it for all tasks */ #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 |