mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
cpuload: change cpuload type to clock_t
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -277,8 +277,8 @@
|
||||
#ifndef CONFIG_SCHED_CPULOAD_NONE
|
||||
struct cpuload_s
|
||||
{
|
||||
volatile uint32_t total; /* Total number of clock ticks */
|
||||
volatile uint32_t active; /* Number of ticks while this thread was active */
|
||||
volatile clock_t total; /* Total number of clock ticks */
|
||||
volatile clock_t active; /* Number of ticks while this thread was active */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -623,7 +623,7 @@ struct tcb_s
|
||||
/* CPU load monitoring support ********************************************/
|
||||
|
||||
#ifndef CONFIG_SCHED_CPULOAD_NONE
|
||||
uint32_t ticks; /* Number of ticks on this thread */
|
||||
clock_t ticks; /* Number of ticks on this thread */
|
||||
#endif
|
||||
|
||||
/* Pre-emption monitor support ********************************************/
|
||||
|
||||
Reference in New Issue
Block a user