Fix a compile error: in sched_cpuload.c:Line136, the variables ts and secs are not defined if CONFIG_CPULOAD_ONESHOT_ENTROPY = 0. However, these variables are used regardless of CONFIG_CPULOAD_ONESHOT_ENTROPY at lines~180:onwards.
This commit is contained in:
parent
b656e371d3
commit
1e38884088
@ -133,11 +133,11 @@ static struct sched_oneshot_s g_sched_oneshot;
|
||||
|
||||
static void sched_oneshot_start(void)
|
||||
{
|
||||
#if CONFIG_CPULOAD_ONESHOT_ENTROPY > 0
|
||||
struct timespec ts;
|
||||
#if CONFIG_CPULOAD_ONESHOT_ENTROPY > 0
|
||||
uint32_t entropy;
|
||||
int32_t secs;
|
||||
#endif
|
||||
int32_t secs;
|
||||
int32_t usecs;
|
||||
|
||||
/* Get the next delay */
|
||||
|
Loading…
Reference in New Issue
Block a user