mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
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:
committed by
Xiang Xiao
parent
9848e5ecec
commit
c785ed7175
+4
-4
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user