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
This commit is contained in:
parent
b282cd3f42
commit
768a214d63
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue