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

Commit 871d1eac 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: Ensure polling occurs on schedule"

parents 29fcab91 21ad06b7
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -278,9 +278,7 @@ static __ref int do_sampling(void *data)

		for_each_online_cpu(cpu) {
			cpu_node = &activity[cpu];
			if (prev_temp[cpu] == cpu_node->temp)
				goto unlock;

			if (prev_temp[cpu] != cpu_node->temp) {
				prev_temp[cpu] = cpu_node->temp;
				cpu_node->low_threshold.temp = cpu_node->temp
							- low_hyst_temp;
@@ -291,6 +289,7 @@ static __ref int do_sampling(void *data)
					cpu_node->hi_threshold.temp,
					cpu_node->low_threshold.temp);
			}
		}
		if (!poll_ms)
			goto unlock;