Re: [PATCH 8/8] LinuxPPS: pps_gen_parport: Add check for bad clocksource.

From: Rodolfo Giometti
Date: Sat Mar 04 2017 - 03:11:44 EST


On 02/15/17 15:31, Andrey Drobyshev wrote:
From: Nikita Edward Baruzdin <nebaruzdin@xxxxxxxxx>

This commit is supposed to resolve the issue with hard lockups on systems using
jiffies as their clock source. Namely, it sets limits on number of iterations
clock source may remain unchanged (i. e. not being updated for one reason or
another, as it is with jiffies clock source), and on unsuccessful
getnstimeofday() polls as well. In case limit is reached, we consider clock
source incompatible with this driver or unstable.

Considering this issue to be fixed, un-BROKEN pps_gen_parport.

For explanation of the problem see this thread on lkml:
https://lkml.org/lkml/2011/2/18/310

Signed-off-by: Nikita Edward Baruzdin <nebaruzdin@xxxxxxxxxxxxx>
Signed-off-by: Alexander GQ Gerasiov <gq@xxxxxxxxx>

Acked-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx>