cpuload: change cpuload type to clock_t

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2023-12-29 14:31:27 +08:00
committed by Xiang Xiao
parent 3521e6ba27
commit fd2da7f4bc
5 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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 ********************************************/