diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-24 15:52:45 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-24 15:52:45 +0000 |
commit | 3b2e159e36ac389022430ff7b63f049b1f1145e7 (patch) | |
tree | 0452831d453735646e837ca539719398a6d8bca6 /nuttx/sched/sched_processtimer.c | |
parent | b67418620bf9f28e5220c24283b8868bdb29adc8 (diff) | |
download | px4-nuttx-3b2e159e36ac389022430ff7b63f049b1f1145e7.tar.gz px4-nuttx-3b2e159e36ac389022430ff7b63f049b1f1145e7.tar.bz2 px4-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
Diffstat (limited to 'nuttx/sched/sched_processtimer.c')
-rw-r--r-- | nuttx/sched/sched_processtimer.c | 6 |
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, ¶m); + up_reprioritize_rtr(rtcb, rtcb->sched_priority); } } } |