diff --git a/sched/sched/sched.h b/sched/sched/sched.h index aa7e0c1c186..3fb922585cb 100644 --- a/sched/sched/sched.h +++ b/sched/sched/sched.h @@ -344,8 +344,8 @@ void nxsched_reassess_timer(void); /* Scheduler policy support */ #if CONFIG_RR_INTERVAL > 0 -uint32_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, uint32_t ticks, - bool noswitches); +clock_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, clock_t ticks, + bool noswitches); #endif #ifdef CONFIG_SCHED_SPORADIC @@ -355,8 +355,8 @@ int nxsched_stop_sporadic(FAR struct tcb_s *tcb); int nxsched_reset_sporadic(FAR struct tcb_s *tcb); int nxsched_resume_sporadic(FAR struct tcb_s *tcb); int nxsched_suspend_sporadic(FAR struct tcb_s *tcb); -uint32_t nxsched_process_sporadic(FAR struct tcb_s *tcb, uint32_t ticks, - bool noswitches); +clock_t nxsched_process_sporadic(FAR struct tcb_s *tcb, clock_t ticks, + bool noswitches); void nxsched_sporadic_lowpriority(FAR struct tcb_s *tcb); #endif diff --git a/sched/sched/sched_roundrobin.c b/sched/sched/sched_roundrobin.c index 856cbe99982..cd974c7e9bd 100644 --- a/sched/sched/sched_roundrobin.c +++ b/sched/sched/sched_roundrobin.c @@ -124,8 +124,8 @@ static int nxsched_roundrobin_handler(FAR void *cookie) * ****************************************************************************/ -uint32_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, uint32_t ticks, - bool noswitches) +clock_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, clock_t ticks, + bool noswitches) { uint32_t ret; int decr; diff --git a/sched/sched/sched_sporadic.c b/sched/sched/sched_sporadic.c index 3907acf4f1a..62bf5aa45c0 100644 --- a/sched/sched/sched_sporadic.c +++ b/sched/sched/sched_sporadic.c @@ -1181,8 +1181,8 @@ int nxsched_suspend_sporadic(FAR struct tcb_s *tcb) * ****************************************************************************/ -uint32_t nxsched_process_sporadic(FAR struct tcb_s *tcb, uint32_t ticks, - bool noswitches) +clock_t nxsched_process_sporadic(FAR struct tcb_s *tcb, clock_t ticks, + bool noswitches) { FAR struct sporadic_s *sporadic;