Changeset 101 for trunk/kernel/kern/thread.c
- Timestamp:
- Jun 29, 2017, 4:44:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r68 r101 514 514 assert( (thread->remote_locks == 0) , __FUNCTION__ , "all remote locks not released" ); 515 515 516 tm_start = hal_ time_stamp();516 tm_start = hal_get_cycles(); 517 517 518 518 // update intrumentation values … … 557 557 thread_release( thread ); 558 558 559 tm_end = hal_ time_stamp();559 tm_end = hal_get_cycles(); 560 560 561 561 thread_dmsg("\n[INFO] %s : exit for thread %x in process %x / duration = %d\n", … … 655 655 // compute elapsed time, taking into account 32 bits register wrap 656 656 uint32_t elapsed; 657 uint32_t time_now = hal_ time_stamp();657 uint32_t time_now = hal_get_cycles(); 658 658 uint32_t time_last = this->time_last_check; 659 659 if( time_now < time_last ) elapsed = (0xFFFFFFFF - time_last) + time_now; … … 753 753 { 754 754 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() ); 756 756 757 757 // force core to sleeping state … … 759 759 760 760 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() ); 762 762 763 763 // acknowledge IRQ
Note: See TracChangeset
for help on using the changeset viewer.