Re: [PATCH 2/2 v2] tools, update rtctest.c to verify passage of time

From: John Stultz
Date: Wed Mar 18 2015 - 16:08:36 EST


On Wed, Mar 18, 2015 at 12:46 PM, Prarit Bhargava <prarit@xxxxxxxxxx> wrote:
> rtctest.c checks to see if PIE is functioning by testing if 20 interrupts occur
> at rates from 2HZ to 64HZ. While this check is good, it does not check to
> see if the correct amount of time has actually passed. This misses
> situations where the RTC may be operating at a higher or lower frequency
> than expected.
>
> This patch introduces a simple check to verify if the time passed is
> less than 10% of what was programmed into the RTC.
>
> Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>
> Cc: corbet@xxxxxxx
> Cc: rtc-linux@xxxxxxxxxxxxxxxx
> Cc: linux-doc@xxxxxxxxxxxxxxx
> Cc: a.zummo@xxxxxxxxxxxx
> Cc: prarit@xxxxxxxxxx
> Cc: john.stultz@xxxxxxxxxx
> Cc: shuahkh@xxxxxxxxxxxxxxx


Acked-by: John Stultz <john.stultz@xxxxxxxxxx>

thanks
-john
--
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/