src/kernel/task/scheduler.c
/**
 * @note add a thread to cpu local
 *       scheduler queue.
 * @param thread
 */
@note add a thread to cpu local
scheduler queue.
@param thread
@note add a thread to cpu local scheduler queue . @param thread
void scheduler_add(thread_t * thread){
    thread->node.data = thread;
    base_t level = intr_disable();
    link_t * cpu_queue = get_cpu_var(ready_queues);
    link_add_tail(cpu_queue, &thread->node);
    put_cpu_var(ready_queues);
    intr_enable(level);
}
void scheduler_add ( thread_t * thread ) { thread -> node . data = thread ; base_t level = intr_disable ( ) ; link_t * cpu_queue = get_cpu_var ( ready_queues ) ; link_add_tail ( cpu_queue , & thread -> node ) ; put_cpu_var ( ready_queues ) ; intr_enable ( level ) ; }
@note add a thread to cpu local
       scheduler queue.
@note add a thread to cpu local scheduler queue .