summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_processtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_processtimer.c')
-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);
}
}
}