sched/sched: Change the uint32_t ticks to clock_t.

This commit changed the uint32_t ticks to clock_t.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2025-11-12 14:55:45 +08:00
committed by Xiang Xiao
parent 9848e5ecec
commit c785ed7175
3 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;