You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/05/27 15:23:55 UTC
(nuttx) branch master updated: nuttx/arch.h: Update parameter type to match definition.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 42865caebd nuttx/arch.h: Update parameter type to match definition.
42865caebd is described below
commit 42865caebd830fa5755ef337640b73c5b0e7c8fa
Author: Stuart Ianna <st...@motec.com.au>
AuthorDate: Wed May 22 08:26:48 2024 +1000
nuttx/arch.h: Update parameter type to match definition.
The definition of nxsched_process_cpuload_ticks uses clock_t, which is
portable across uint32_t and uint64_t timers, and works if CONFIG_SYSTEM_TIME64 is
defined.
---
include/nuttx/arch.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h
index 9ab9da1f96..11971e54cd 100644
--- a/include/nuttx/arch.h
+++ b/include/nuttx/arch.h
@@ -2544,7 +2544,7 @@ void nxsched_alarm_tick_expiration(clock_t ticks);
****************************************************************************/
#ifdef CONFIG_SCHED_CPULOAD_EXTCLK
-void nxsched_process_cpuload_ticks(uint32_t ticks);
+void nxsched_process_cpuload_ticks(clock_t ticks);
# define nxsched_process_cpuload() nxsched_process_cpuload_ticks(1)
#endif