Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af9864a5 authored by Samer Xie's avatar Samer Xie Committed by Todd Kjos
Browse files

ANDROID: DEBUG: fix build error when Macro DEBUG_EENV_DECISIONS is defined



with the following commit:

1c3821bc ("ANDROID: DEBUG: accumulate debug output and dump all at the end of energy_diff")

In struct energy_env, member variable cpu_array_len does not exist.

Bug: 120440300
Signed-off-by: default avatarSamer Xie <samer.xie@unisoc.com>
parent 4a739e35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7717,7 +7717,7 @@ static inline void reset_eenv(struct energy_env *eenv)
#ifdef DEBUG_EENV_DECISIONS
	memset(debug, 0, eenv_debug_size());
	eenv->debug = debug;
	for(cpu_idx = 0; cpu_idx < eenv->cpu_array_len; cpu_idx++)
	for(cpu_idx = 0; cpu_idx < eenv->eenv_cpu_count; cpu_idx++)
		eenv->cpu[cpu_idx].debug = eenv_debug_percpu_debug_env_ptr(debug, cpu_idx);
#endif
}