Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/waitq.c

    r6ec34bb rd99c1d2  
    5454#include <context.h>
    5555#include <adt/list.h>
    56 #include <arch/cycle.h>
    5756
    5857static void waitq_sleep_timed_out(void *data);
     
    374373                if (!context_save(&THREAD->sleep_interruption_context)) {
    375374                        /* Short emulation of scheduler() return code. */
    376                         THREAD->last_cycle = get_cycle();
    377375                        spinlock_unlock(&THREAD->lock);
    378376                        return ESYNCH_INTERRUPTED;
     
    387385                if (!context_save(&THREAD->sleep_timeout_context)) {
    388386                        /* Short emulation of scheduler() return code. */
    389                         THREAD->last_cycle = get_cycle();
    390387                        spinlock_unlock(&THREAD->lock);
    391388                        return ESYNCH_TIMEOUT;
Note: See TracChangeset for help on using the changeset viewer.