From 42865caebd830fa5755ef337640b73c5b0e7c8fa Mon Sep 17 00:00:00 2001 From: Stuart Ianna Date: Wed, 22 May 2024 08:26:48 +1000 Subject: [PATCH] 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 9ab9da1f962..11971e54cdf 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