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

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

Merge "drivers: soc: qcom: lpm-stats: Fix negative sleep times" into msm-4.9

parents c3ef9e55 2fde0e39
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -425,6 +425,9 @@ static inline void update_exit_stats(struct lpm_stats *stats, uint32_t index,
	uint64_t exit_time = 0;
	uint64_t exit_time = 0;


	/* Update time stats only when exit is preceded by enter */
	/* Update time stats only when exit is preceded by enter */
	if (stats->sleep_time < 0)
		success = false;
	else
		exit_time = stats->sleep_time;
		exit_time = stats->sleep_time;
	update_level_stats(&stats->time_stats[index], exit_time,
	update_level_stats(&stats->time_stats[index], exit_time,
					success);
					success);