Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6ec34bb in mainline


Ignore:
Timestamp:
2010-04-06T09:12:53Z (12 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master
Children:
f0dcdc5
Parents:
acc3f745
Message:

bugfix: synch/waitq.c saves THREAD→last_cycle after context restored.

File:
1 edited

Legend:

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

    racc3f745 r6ec34bb  
    5454#include <context.h>
    5555#include <adt/list.h>
     56#include <arch/cycle.h>
    5657
    5758static void waitq_sleep_timed_out(void *data);
     
    373374                if (!context_save(&THREAD->sleep_interruption_context)) {
    374375                        /* Short emulation of scheduler() return code. */
     376                        THREAD->last_cycle = get_cycle();
    375377                        spinlock_unlock(&THREAD->lock);
    376378                        return ESYNCH_INTERRUPTED;
     
    385387                if (!context_save(&THREAD->sleep_timeout_context)) {
    386388                        /* Short emulation of scheduler() return code. */
     389                        THREAD->last_cycle = get_cycle();
    387390                        spinlock_unlock(&THREAD->lock);
    388391                        return ESYNCH_TIMEOUT;
Note: See TracChangeset for help on using the changeset viewer.