mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
cpuload: change cpuload type to clock_t
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
3521e6ba27
commit
fd2da7f4bc
5 changed files with 11 additions and 11 deletions
|
|
@ -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 ********************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue