Changeset d0c82c5 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2010-06-16T19:44:53Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5387807
Parents:
5954241
Message:

perfect CPU cycles accounting, cherry-picked and adopted from lp:~ersin/helenos/measure2

File:
1 edited

Legend:

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

    r5954241 rd0c82c5  
    193193                 * This improves energy saving and hyperthreading.
    194194                 */
    195                
    196                  /* Mark CPU as it was idle this clock tick */
    197195                irq_spinlock_lock(&CPU->lock, false);
    198196                CPU->idle = true;
    199197                irq_spinlock_unlock(&CPU->lock, false);
    200                
    201198                interrupts_enable();
     199               
    202200                /*
    203201                 * An interrupt might occur right now and wake up a thread.
     
    386384        as_t *old_as = AS;
    387385       
    388         ASSERT(!THREAD || irq_spinlock_locked(&THREAD->lock));
     386        ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock)));
    389387        ASSERT(CPU != NULL);
    390388       
Note: See TracChangeset for help on using the changeset viewer.