Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/time/clock.c

    rb2e121a rb0c2075  
    4646#include <synch/spinlock.h>
    4747#include <synch/waitq.h>
    48 #include <halt.h>
     48#include <func.h>
    4949#include <proc/scheduler.h>
    5050#include <cpu.h>
     
    212212                irq_spinlock_unlock(&THREAD->lock, false);
    213213               
    214                 if (ticks == 0 && PREEMPTION_ENABLED) {
     214                if ((!ticks) && (!PREEMPTION_DISABLED)) {
    215215                        scheduler();
    216216#ifdef CONFIG_UDEBUG
Note: See TracChangeset for help on using the changeset viewer.