Ignore:
Timestamp:
Jun 29, 2017, 4:44:52 PM (7 years ago)
Author:
alain
Message:

euh...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r68 r101  
    514514    assert( (thread->remote_locks == 0) , __FUNCTION__ , "all remote locks not released" );
    515515
    516         tm_start = hal_time_stamp();
     516        tm_start = hal_get_cycles();
    517517
    518518    // update intrumentation values
     
    557557    thread_release( thread );
    558558
    559         tm_end = hal_time_stamp();
     559        tm_end = hal_get_cycles();
    560560
    561561        thread_dmsg("\n[INFO] %s : exit for thread %x in process %x / duration = %d\n",
     
    655655    // compute elapsed time, taking into account 32 bits register wrap
    656656    uint32_t elapsed;
    657     uint32_t time_now   = hal_time_stamp();
     657    uint32_t time_now   = hal_get_cycles();
    658658    uint32_t time_last  = this->time_last_check;
    659659    if( time_now < time_last ) elapsed = (0xFFFFFFFF - time_last) + time_now;
     
    753753    {
    754754        idle_dmsg("\n[INFO] %s : core[%x][%d] goes to sleep at cycle %d\n",
    755                     __FUNCTION__ , local_cxy , lid , hal_time_stamp() );
     755                    __FUNCTION__ , local_cxy , lid , hal_get_cycles() );
    756756
    757757        // force core to sleeping state
     
    759759
    760760        idle_dmsg("\n[INFO] %s : core[%x][%d] wake up at cycle %d\n",
    761                     __FUNCTION__ , local_cxy , lid , hal_time_stamp() );
     761                    __FUNCTION__ , local_cxy , lid , hal_get_cycles() );
    762762
    763763                // acknowledge IRQ
Note: See TracChangeset for help on using the changeset viewer.