remove robin enable config
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
|
||||
#if TOS_CFG_ROUND_ROBIN_EN > 0u
|
||||
|
||||
__API__ void tos_robin_config(k_robin_state_t robin_state, k_timeslice_t default_timeslice)
|
||||
__API__ void tos_robin_default_timeslice_config(k_timeslice_t default_timeslice)
|
||||
{
|
||||
TOS_CPU_CPSR_ALLOC();
|
||||
TOS_CPU_INT_DISABLE();
|
||||
|
||||
k_robin_state = robin_state;
|
||||
TOS_CPU_INT_DISABLE();
|
||||
|
||||
if (default_timeslice > (k_timeslice_t)0u) {
|
||||
k_robin_default_timeslice = default_timeslice;
|
||||
} else {
|
||||
k_robin_default_timeslice = TOS_CFG_CPU_TICK_PER_SECOND / 10;
|
||||
}
|
||||
|
||||
TOS_CPU_INT_ENABLE();
|
||||
}
|
||||
|
||||
@@ -44,10 +44,6 @@ __KERNEL__ void robin_sched(k_prio_t prio)
|
||||
TOS_CPU_CPSR_ALLOC();
|
||||
k_task_t *task;
|
||||
|
||||
if (k_robin_state != TOS_ROBIN_STATE_ENABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
TOS_CPU_INT_DISABLE();
|
||||
|
||||
task = readyqueue_first_task_get(prio);
|
||||
|
Reference in New Issue
Block a user