9
0
Fork 0

Don't all sched_setparam; call up_prrioritize_rtr directly

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@137 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2007-03-24 15:52:45 +00:00
parent 526b50ea2a
commit 37d2e3fbf7
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}
}
}