[Linuxptp-devel] [PATCHv2 6/6] pi: use sample weight.

2015-03-17 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- pi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pi.c b/pi.c index 9c7b148..e0116fe 100644 --- a/pi.c +++ b/pi.c @@ -137,8 +137,8 @@ static double pi_sample(struct servo *servo, break;

[Linuxptp-devel] [PATCHv2 0/6] Improve accuracy with software timestamping

2015-03-17 Thread Miroslav Lichvar
Changes since v1: - include the changes to refactor time stamp processing - raw and weighting modes are configurable (disabled by default) This adds new time stamp processing modes that are suitable with software time stamping. The idea is to give smaller weights to samples where the sync and/or

[Linuxptp-devel] [PATCHv2 3/6] tsproc: add raw and weighting modes.

2015-03-17 Thread Miroslav Lichvar
Add new time stamp processing modes to return raw delay and offset based on the raw delay instead of the long-term filtered delay, and to return also a weight of the sample. The weight is set to the ratio between the two delays. This gives smaller weight to samples where the sync and/or delay

[Linuxptp-devel] [PATCHv2 5/6] linreg: use sample weight.

2015-03-17 Thread Miroslav Lichvar
Signed-off-by: Miroslav Lichvar mlich...@redhat.com --- linreg.c | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/linreg.c b/linreg.c index 3f7fe9a..8f354f4 100644 --- a/linreg.c +++ b/linreg.c @@ -42,6 +42,7 @@ struct point {