mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Backs out part of commit d7a602e9b2. When CONFIG_SCHED_CPULOAD_EXTCLK is defined, the prototype must still be available in nuttx/arch.h
This commit is contained in:
@@ -2053,6 +2053,31 @@ void sched_timer_expiration(void);
|
|||||||
void sched_alarm_expiration(FAR const struct timespec *ts);
|
void sched_alarm_expiration(FAR const struct timespec *ts);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: nxsched_process_cpuload
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* Collect data that can be used for CPU load measurements. When
|
||||||
|
* CONFIG_SCHED_CPULOAD_EXTCLK is defined, this is an exported interface,
|
||||||
|
* use the the external clock logic. Otherwise, it is an OS Internal
|
||||||
|
* interface.
|
||||||
|
*
|
||||||
|
* Input Parameters:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Returned Value:
|
||||||
|
* None
|
||||||
|
*
|
||||||
|
* Assumptions/Limitations:
|
||||||
|
* This function is called from a timer interrupt handler with all
|
||||||
|
* interrupts disabled.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#if defined(CONFIG_SCHED_CPULOAD) && defined(CONFIG_SCHED_CPULOAD_EXTCLK)
|
||||||
|
void weak_function nxsched_process_cpuload(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: irq_dispatch
|
* Name: irq_dispatch
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -154,7 +154,10 @@ static inline void nxsched_cpu_process_cpuload(int cpu)
|
|||||||
* Name: nxsched_process_cpuload
|
* Name: nxsched_process_cpuload
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Collect data that can be used for CPU load measurements.
|
* Collect data that can be used for CPU load measurements. When
|
||||||
|
* CONFIG_SCHED_CPULOAD_EXTCLK is defined, this is an exported interface,
|
||||||
|
* use the the external clock logic. Otherwise, it is an OS Internal
|
||||||
|
* interface.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* None
|
* None
|
||||||
|
|||||||
Reference in New Issue
Block a user