diff options
author | Thomas Gleixner <[email protected]> | 2020-01-16 19:17:02 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-01-17 11:19:22 +0100 |
commit | 11e31f608b499f044f24b20be73f1dcab3e43f8a (patch) | |
tree | 404752a4c23a29b8471671ecb12ffbc127b47531 /scripts/gdb/linux/genpd.py | |
parent | 3a51449b7959f68cc45abe67298e40c7eb57167b (diff) |
watchdog/softlockup: Enforce that timestamp is valid on boot
Robert reported that during boot the watchdog timestamp is set to 0 for one
second which is the indicator for a watchdog reset.
The reason for this is that the timestamp is in seconds and the time is
taken from sched clock and divided by ~1e9. sched clock starts at 0 which
means that for the first second during boot the watchdog timestamp is 0,
i.e. reset.
Use ULONG_MAX as the reset indicator value so the watchdog works correctly
right from the start. ULONG_MAX would only conflict with a real timestamp
if the system reaches an uptime of 136 years on 32bit and almost eternity
on 64bit.
Reported-by: Robert Richter <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/genpd.py')
0 files changed, 0 insertions, 0 deletions