Return actual frequency in drv_set_freq functions

This is needed to keep sourcestats accurate when the actual frequency is
different from the requested frequency due to clamping (or possibly
rounding in future system drivers).
This commit is contained in:
Miroslav Lichvar
2010-04-20 18:29:39 +02:00
parent c15db71f9e
commit 1a7415a6ab
10 changed files with 45 additions and 22 deletions

View File

@@ -54,7 +54,7 @@ read_timeout(void *arg)
/* Don't allow corrections above 10 ppm */
if (fabs(comp) < 10.0) {
LCL_SetTempComp(comp);
comp = LCL_SetTempComp(comp);
if (logfileid != -1) {
struct timeval now;