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:
Gregory Nutt
2014-04-30 15:47:55 -06:00
parent 8d758a13de
commit 79d9e9cccd
4 changed files with 28 additions and 1 deletions
+22
View File
@@ -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
*