From: Miroslav Lichvar Date: Tue, 13 Sep 2011 14:37:54 +0000 (+0200) Subject: Use ADJ_OFFSET_SS_READ mode only with kernels 2.6.28 and later X-Git-Tag: 1.27-pre1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78fc17c66182c5c5c6f9d46300fe183af1326870;p=thirdparty%2Fchrony.git Use ADJ_OFFSET_SS_READ mode only with kernels 2.6.28 and later --- diff --git a/sys_linux.c b/sys_linux.c index f3bb5f76..ffc917ed 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -1007,8 +1007,9 @@ get_version_specific_details(void) } } - /* ADJ_OFFSET_SS_READ support */ - if (kernelvercmp(major, minor, patch, 2, 6, 27) < 0) { + /* ADJ_OFFSET_SS_READ support. It's available since 2.6.24, + but was buggy until 2.6.28. */ + if (kernelvercmp(major, minor, patch, 2, 6, 28) < 0) { have_readonly_adjtime = 0; } else { have_readonly_adjtime = 1;