Joel Sherrill started a new discussion on cpukit/libmisc/cpuuse/cpuusagefortask.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/843#note_136478 > + uint32_t ival; > + uint32_t fval; > + Timestamp_Control uptime; > + Timestamp_Control uptime_at_last_reset; > + Timestamp_Control used; > + Timestamp_Control total; > + > + uptime_at_last_reset = CPU_usage_Uptime_at_last_reset; > + > + the_thread = _Thread_Get( task_id, &lock_context ); > + > + if ( the_thread == NULL ) { > + return RTEMS_INVALID_ID; > + } > + > + used = _Thread_Get_CPU_time_used_after_last_reset( the_thread ); A comment above this block would be helpful. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/843#note_136478 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
