aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-05-28 16:55:00 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-06-11 21:04:06 +0200
commitcc86c139ae41a6107955db0b4c79d549cbccb4a6 (patch)
treeec960fac8b25313bc65b7a03cac70cf7219d013d
parentthermal/debugfs: Do not extend mitigation episodes beyond system resume (diff)
downloadwireguard-linux-cc86c139ae41a6107955db0b4c79d549cbccb4a6.tar.xz
wireguard-linux-cc86c139ae41a6107955db0b4c79d549cbccb4a6.zip
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>
-rw-r--r--drivers/thermal/thermal_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_debugfs.c b/drivers/thermal/thermal_debugfs.c
index c592eca11a50..d74d4cf3ac7b 100644
--- a/drivers/thermal/thermal_debugfs.c
+++ b/drivers/thermal/thermal_debugfs.c
@@ -797,8 +797,8 @@ static int tze_seq_show(struct seq_file *s, void *v)
c = '=';
}
- seq_printf(s, ",-Mitigation at %lluus, duration%c%llums\n",
- ktime_to_us(tze->timestamp), c, duration_ms);
+ seq_printf(s, ",-Mitigation at %llums, duration%c%llums\n",
+ 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");