From: Miroslav Lichvar Date: Tue, 14 Jun 2011 18:45:48 +0000 (+0200) Subject: Don't call driver read_freq in LCL_ReadAbsoluteFrequency X-Git-Tag: 1.26-pre1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22fda21eae92e8a3db344a519fa30012eddcba39;p=thirdparty%2Fchrony.git Don't call driver read_freq in LCL_ReadAbsoluteFrequency --- diff --git a/local.c b/local.c index 76196973..12fecf43 100644 --- a/local.c +++ b/local.c @@ -358,14 +358,14 @@ LCL_GetOffsetCorrection(struct timeval *raw, double *correction, double *err) } /* ================================================== */ -/* This is just a simple passthrough of the system specific routine */ +/* Return current frequency */ double LCL_ReadAbsoluteFrequency(void) { double freq; - freq = (*drv_read_freq)(); + freq = current_freq_ppm; /* Undo temperature compensation */ if (temp_comp_ppm != 0.0) {