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>