mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +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 */
|
/* Scheduler policy support */
|
||||||
|
|
||||||
#if CONFIG_RR_INTERVAL > 0
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
uint32_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, uint32_t ticks,
|
clock_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, clock_t ticks,
|
||||||
bool noswitches);
|
bool noswitches);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_SPORADIC
|
#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_reset_sporadic(FAR struct tcb_s *tcb);
|
||||||
int nxsched_resume_sporadic(FAR struct tcb_s *tcb);
|
int nxsched_resume_sporadic(FAR struct tcb_s *tcb);
|
||||||
int nxsched_suspend_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,
|
clock_t nxsched_process_sporadic(FAR struct tcb_s *tcb, clock_t ticks,
|
||||||
bool noswitches);
|
bool noswitches);
|
||||||
void nxsched_sporadic_lowpriority(FAR struct tcb_s *tcb);
|
void nxsched_sporadic_lowpriority(FAR struct tcb_s *tcb);
|
||||||
#endif
|
#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,
|
clock_t nxsched_process_roundrobin(FAR struct tcb_s *tcb, clock_t ticks,
|
||||||
bool noswitches)
|
bool noswitches)
|
||||||
{
|
{
|
||||||
uint32_t ret;
|
uint32_t ret;
|
||||||
int decr;
|
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,
|
clock_t nxsched_process_sporadic(FAR struct tcb_s *tcb, clock_t ticks,
|
||||||
bool noswitches)
|
bool noswitches)
|
||||||
{
|
{
|
||||||
FAR struct sporadic_s *sporadic;
|
FAR struct sporadic_s *sporadic;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user