HomeFreeBSD

Correctly calculate the value to put in the imx wdog countdown register.

Description

Correctly calculate the value to put in the imx wdog countdown register.

The correct value is seconds*2-1. The code was using just seconds*2, which
led to being off by a half-second -- usually not a big deal, except when the
value was the max (128) it overflowed so zero would get written to the
countdown register, which equates to a timeout of a half second.

Details

Provenance
ianAuthored on
Parents
rS336071: MFC r335580:
Branches
Unknown
Tags
Unknown