You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/17 10:26:24 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6866: sched: Simplify the cpuload process

xiaoxiang781216 commented on code in PR #6866:
URL: https://github.com/apache/incubator-nuttx/pull/6866#discussion_r947756566


##########
include/nuttx/arch.h:
##########
@@ -2278,7 +2253,8 @@ void weak_function nxsched_process_cpuload(void);
  ****************************************************************************/
 
 #if defined(CONFIG_SCHED_CPULOAD) && defined(CONFIG_SCHED_CPULOAD_EXTCLK)
-void weak_function nxsched_process_cpuload_ticks(uint32_t ticks);
+void nxsched_process_cpuload_ticks(uint32_t ticks);
+#  define nxsched_process_cpuload() nxsched_process_cpuload_ticks(1)

Review Comment:
   No, since the chip need call nxsched_process_cpuload_ticks when CONFIG_SCHED_CPULOAD_EXTCLK is defined.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org