mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
If the CPU load measurements are being driven by an external clock, then the prototype for sched_process_cpuload() must be available in include/nuttx/arch.h
This commit is contained in:
@@ -1029,6 +1029,28 @@ void up_cxxinitialize(void);
|
||||
|
||||
void sched_process_timer(void);
|
||||
|
||||
/************************************************************************
|
||||
* Name: sched_process_cpuload
|
||||
*
|
||||
* Description:
|
||||
* Collect data that can be used for CPU load measurements.
|
||||
*
|
||||
* Inputs:
|
||||
* None
|
||||
*
|
||||
* Return 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 sched_process_cpuload(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: irq_dispatch
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user