xiaoxiang781216 commented on code in PR #21424: URL: https://github.com/apache/nuttx/pull/21424#discussion_r4536621529
########## sched/sched/sched_critmonitor.c: ########## @@ -110,6 +110,14 @@ static spinlock_t g_crimonitor_lock = SP_UNLOCKED; #endif +/* The time of the last CPU load update of each CPU. The run time of the + * threads (run_start, run_time) is only changed by their own CPU. + */ + +#ifdef CONFIG_SCHED_CPULOAD_CRITMONITOR +static clock_t g_cpuload_start[CONFIG_SMP_NCPUS]; Review Comment: but g_cpuload_start update when the cpu run the different thread? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
