Skip to content

Commit cc86c13

Browse files
committed
thermal/debugfs: Print mitigation timestamp value in milliseconds
Because mitigation episode duration is printed in milliseconds, there is no reason to print timestamp information for mitigation episodes in smaller units which also makes it somewhat harder to interpret the numbers. Print it in milliseconds for consistency. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 9b73b50 commit cc86c13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/thermal/thermal_debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ static int tze_seq_show(struct seq_file *s, void *v)
797797
c = '=';
798798
}
799799

800-
seq_printf(s, ",-Mitigation at %lluus, duration%c%llums\n",
801-
ktime_to_us(tze->timestamp), c, duration_ms);
800+
seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n",
801+
ktime_to_ms(tze->timestamp), c, duration_ms);
802802

803803
seq_printf(s, "| trip | type | temp(°mC) | hyst(°mC) | duration | avg(°mC) | min(°mC) | max(°mC) |\n");
804804

0 commit comments

Comments
 (0)