cpuload: fix cpuload error
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
40f7872668
commit
51d31cc4a2
@ -225,11 +225,13 @@ void nxsched_process_timer(void)
|
|||||||
clock_timer();
|
clock_timer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_SCHED_CPULOAD_EXTCLK
|
||||||
/* Perform CPU load measurements (before any timer-initiated context
|
/* Perform CPU load measurements (before any timer-initiated context
|
||||||
* switches can occur)
|
* switches can occur)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nxsched_process_cpuload();
|
nxsched_process_cpuload();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Check if the currently executing task has exceeded its
|
/* Check if the currently executing task has exceeded its
|
||||||
* timeslice.
|
* timeslice.
|
||||||
|
@ -382,11 +382,13 @@ static unsigned int nxsched_timer_process(unsigned int ticks,
|
|||||||
clock_update_wall_time();
|
clock_update_wall_time();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_SCHED_CPULOAD_EXTCLK
|
||||||
/* Perform CPU load measurements (before any timer-initiated context
|
/* Perform CPU load measurements (before any timer-initiated context
|
||||||
* switches can occur)
|
* switches can occur)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nxsched_process_cpuload_ticks(ticks);
|
nxsched_process_cpuload_ticks(ticks);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Process watchdogs */
|
/* Process watchdogs */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user