Commit ea6a3c52 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

thermal/debugfs: Fix up units in "mitigations" files

Print temperature units as m°C rather than °mC (the meaning of which is
unclear) and add time unit to the duration column.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent cc86c139
...@@ -800,7 +800,7 @@ static int tze_seq_show(struct seq_file *s, void *v) ...@@ -800,7 +800,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n", seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n",
ktime_to_ms(tze->timestamp), c, duration_ms); ktime_to_ms(tze->timestamp), c, duration_ms);
seq_printf(s, "| trip | type | temp(°mC) | hyst(°mC) | duration | avg(°mC) | min(°mC) | max(°mC) |\n"); seq_printf(s, "| trip | type | temp(m°C) | hyst(m°C) | duration(ms) | avg(m°C) | min(m°C) | max(m°C) |\n");
for_each_trip_desc(tz, td) { for_each_trip_desc(tz, td) {
const struct thermal_trip *trip = &td->trip; const struct thermal_trip *trip = &td->trip;
...@@ -846,7 +846,7 @@ static int tze_seq_show(struct seq_file *s, void *v) ...@@ -846,7 +846,7 @@ static int tze_seq_show(struct seq_file *s, void *v)
8, type, 8, type,
9, trip_stats->trip_temp, 9, trip_stats->trip_temp,
9, trip_stats->trip_hyst, 9, trip_stats->trip_hyst,
c, 10, duration_ms, c, 11, duration_ms,
9, trip_stats->avg, 9, trip_stats->avg,
9, trip_stats->min, 9, trip_stats->min,
9, trip_stats->max); 9, trip_stats->max);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment