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

Commit e4c9a1e7 authored by Cheonho Park's avatar Cheonho Park
Browse files

msm-core: fix a missing scaling_factor



When thermal_core notified tsens temperatures to msm-core,
unit is mC, but msm-core plays with C, need to divide with scaling_factor
otherwise, it set a big CONFIGURABLE_LOW threshold which has impossible
to be clear.

Change-Id: I0e3d8a0f7ff087a3b5503d4b9b7f367be4cff011
Signed-off-by: default avatarCheonho Park <cheonhop@codeaurora.org>
parent 049b7256
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ static void core_temp_notify(enum thermal_trip_type type,
	trace_temp_notification(cpu_node->sensor_id,
		type, temp, cpu_node->temp);

	cpu_node->temp = temp;
	cpu_node->temp = temp / scaling_factor;

	complete(&sampling_completion);
}