diff options
| author | Maria Yu <aiquny@codeaurora.org> | 2017-07-12 15:12:42 +0800 |
|---|---|---|
| committer | Maria Yu <aiquny@codeaurora.org> | 2017-07-13 10:09:41 +0800 |
| commit | 3551dc315a01db30b59e2113053fd166b44e463c (patch) | |
| tree | b62b86910a7fc4261b45a9c4ae830a9507790f25 | |
| parent | d8ff341d388e4f5cd80d88ed231d0b881ea770cb (diff) | |
msm-core: Align the trace log temp in same scale factor
Temp in trace_temp_notification is not divided with
scaling factor while cpu_node->temp is. Use temp after
scale for better log understanding.
Change-Id: Iadf4a1c39211651fee67cc18f68a65785f28fa58
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
| -rw-r--r-- | drivers/power/qcom/msm-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/power/qcom/msm-core.c b/drivers/power/qcom/msm-core.c index 43ad33ea234b..825c27e7a4c1 100644 --- a/drivers/power/qcom/msm-core.c +++ b/drivers/power/qcom/msm-core.c @@ -190,10 +190,12 @@ static void core_temp_notify(enum thermal_trip_type type, struct cpu_activity_info *cpu_node = (struct cpu_activity_info *) data; + temp /= scaling_factor; + trace_temp_notification(cpu_node->sensor_id, type, temp, cpu_node->temp); - cpu_node->temp = temp / scaling_factor; + cpu_node->temp = temp; complete(&sampling_completion); } |
