summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 15:52:45 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 15:52:45 +0000
commit3b2e159e36ac389022430ff7b63f049b1f1145e7 (patch)
tree0452831d453735646e837ca539719398a6d8bca6
parentb67418620bf9f28e5220c24283b8868bdb29adc8 (diff)
downloadnuttx-3b2e159e36ac389022430ff7b63f049b1f1145e7.tar.gz
nuttx-3b2e159e36ac389022430ff7b63f049b1f1145e7.tar.bz2
nuttx-3b2e159e36ac389022430ff7b63f049b1f1145e7.zip
Don't all sched_setparam; call up_prrioritize_rtr directly
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@137 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/sched/sched_processtimer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nuttx/sched/sched_processtimer.c b/nuttx/sched/sched_processtimer.c
index 3decd12e7..186de78d2 100644
--- a/nuttx/sched/sched_processtimer.c
+++ b/nuttx/sched/sched_processtimer.c
@@ -47,6 +47,7 @@
#if CONFIG_RR_INTERVAL > 0
# include <sched.h>
+# include <nuttx/arch.h>
#endif
#include "os_internal.h"
@@ -115,16 +116,13 @@ static void sched_process_timeslice(void)
if (rtcb->flink &&
rtcb->flink->sched_priority >= rtcb->sched_priority)
{
- struct sched_param param;
-
/* Just resetting the task priority to its current
* value. This this will cause the task to be
* rescheduled behind any other tasks at the same
* priority.
*/
- param.sched_priority = rtcb->sched_priority;
- (void)sched_setparam(0, &param);
+ up_reprioritize_rtr(rtcb, rtcb->sched_priority);
}
}
}