Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    rb2fa1204 r1558d85  
    5252#include <atomic.h>
    5353#include <synch/spinlock.h>
     54#include <synch/workqueue.h>
     55#include <synch/rcu.h>
    5456#include <config.h>
    5557#include <context.h>
     
    8789{
    8890        before_thread_runs_arch();
     91        rcu_before_thread_runs();
    8992       
    9093#ifdef CONFIG_FPU_LAZY
     
    127130static void after_thread_ran(void)
    128131{
     132        workq_after_thread_ran();
     133        rcu_after_thread_ran();
    129134        after_thread_ran_arch();
    130135}
     
    219224                goto loop;
    220225        }
     226
     227        ASSERT(!CPU->idle);
    221228       
    222229        unsigned int i;
     
    398405        ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
    399406        ASSERT(CPU != NULL);
     407        ASSERT(interrupts_disabled());
    400408       
    401409        /*
     
    421429               
    422430                case Exiting:
     431                        rcu_thread_exiting();
    423432repeat:
    424433                        if (THREAD->detached) {
Note: See TracChangeset for help on using the changeset viewer.