]> Gentwo Git Trees - linux/.git/commit
watchdog/softlockup: fix wrong output when watchdog_thresh < 3
authorZhenguoYao <yaozhenguo1@gmail.com>
Tue, 12 Aug 2025 07:41:32 +0000 (15:41 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:47 +0000 (17:32 -0700)
commit41f88ddfd453fe894678e1f6909b9fb9e08e8c3d
treec2a8c90e531e4a1222082f5f296597e770a263a3
parent0ca863b7c638803722dc5596b2d520812cf283b7
watchdog/softlockup: fix wrong output when watchdog_thresh < 3

When watchdog_thresh is below 3, sample_period will be less than 1 second.
So the following output will print when softlockup:

CPU#3 Utilization every 0s during lockup

Fix this by changing time unit from seconds to milliseconds.

Link: https://lkml.kernel.org/r/20250812074132.27810-1-yaozhenguo@jd.com
Signed-off-by: ZhenguoYao <yaozhenguo1@gmail.com>
Cc: Bitao Hu <yaoma@linux.alibaba.com>
Cc: Li Huafei <lihuafei1@huawei.com>
Cc: Max Kellermann <max.kellermann@ionos.com>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/watchdog.c