Re: [RFC][PATCH v3] timekeeping: Cap adjustments so they don't exceed the maxadj value

From: Miroslav Lichvar
Date: Wed Dec 16 2015 - 05:15:00 EST


On Tue, Dec 15, 2015 at 09:48:06PM -0800, John Stultz wrote:
> Thus its been occasionally noted that users have seen
> confusing warnings like:
>
> Adjusting tsc more than 11% (5941981 vs 7759439)

> v2: Catch single unit adjustment that was being made
> repeatedly to push us past the limit, as pointed
> out by Miroslav.
> v3: Fix off-by-one case that could result in warning
> still triggering, pointed out by Miroslav.

Looks good to me. There are no warnings in the simulator and chronyd
still seems to be working as expected.

Tested-by: Miroslav Lichvar <mlichvar@xxxxxxxxxx>

--
Miroslav Lichvar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/