Changeset 438 for trunk/kernel/syscalls/sys_thread_sleep.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_thread_sleep.c
r436 r438 33 33 thread_t * this = CURRENT_THREAD; 34 34 35 #if CONFIG_DEBUG_SYS_THREAD_SLEEP35 #if DEBUG_SYS_THREAD_SLEEP 36 36 uint64_t tm_start; 37 37 uint64_t tm_end; 38 38 tm_start = hal_get_cycles(); 39 if( CONFIG_DEBUG_SYS_THREAD_SLEEP < tm_start )39 if( DEBUG_SYS_THREAD_SLEEP < tm_start ) 40 40 printk("\n[DBG] %s : thread %x blocked / process %x / cycle %d\n", 41 41 __FUNCTION__ , this, this->process->pid , (uint32_t)tm_start ); … … 45 45 sched_yield("blocked on sleep"); 46 46 47 #if CONFIG_DEBUG_SYS_THREAD_SLEEP47 #if DEBUG_SYS_THREAD_SLEEP 48 48 tm_end = hal_get_cycles(); 49 if( CONFIG_DEBUG_SYS_THREAD_SLEEP < tm_end )49 if( DEBUG_SYS_THREAD_SLEEP < tm_end ) 50 50 printk("\n[DBG] %s : thread %x resume / process %x / cycle %d\n", 51 51 __FUNCTION__ , this, this->process->pid , (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.