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

Commit 28bbe02e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm-core: Fix NULL pointer issue while repopulating stats"

parents 6046e303 74f8105c
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -236,7 +236,12 @@ void trigger_cpu_pwr_stats_calc(void)
			sensor_get_temp(cpu_node->sensor_id, &cpu_node->temp);
			sensor_get_temp(cpu_node->sensor_id, &cpu_node->temp);
		prev_temp[cpu] = cpu_node->temp;
		prev_temp[cpu] = cpu_node->temp;


		if (activate_power_table && cpu_node->sp->table)
		/*
		 * Do not populate/update stats before policy and ptable have
		 * been updated.
		 */
		if (activate_power_table && cpu_stats[cpu].ptable
			&& cpu_node->sp->table)
			repopulate_stats(cpu);
			repopulate_stats(cpu);
	}
	}
	spin_unlock(&update_lock);
	spin_unlock(&update_lock);