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

Commit 0576a37c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpuidle: lpm-levels: Fix RIMPS timer programming"

parents b417ee11 841f4e8a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -251,8 +251,13 @@ static uint32_t get_next_event(struct lpm_cpu *cpu)
{
	ktime_t next_event = KTIME_MAX;
	unsigned int next_cpu;
	struct cpumask cpu_lpm_mask;

	cpumask_and(&cpu_lpm_mask, &cpu->related_cpus, cpu_online_mask);
	if (cpumask_empty(&cpu_lpm_mask))
		return 0;

	for_each_cpu(next_cpu, &cpu->related_cpus) {
	for_each_cpu(next_cpu, &cpu_lpm_mask) {
		ktime_t next_event_c = per_cpu(cpu_lpm, next_cpu)->next_hrtimer;

		if (next_event > next_event_c)