diff options
author | 2004-10-23 12:01:42 +0000 | |
---|---|---|
committer | 2004-10-23 12:01:42 +0000 | |
commit | 7ae8f522feac48d9d3934076933fca9484c38dfd (patch) | |
tree | 3d8ef8c0794a58e5803526380bc73539cfa78f77 /net-misc/chrony/files | |
parent | Initial import. Thanks to DATE Ken at GentooJP EbuildJP, http://ebuild.gentoo... (diff) | |
download | historical-7ae8f522feac48d9d3934076933fca9484c38dfd.tar.gz historical-7ae8f522feac48d9d3934076933fca9484c38dfd.tar.bz2 historical-7ae8f522feac48d9d3934076933fca9484c38dfd.zip |
Support CONFIG_HZ=200, see bug #21058
Diffstat (limited to 'net-misc/chrony/files')
-rw-r--r-- | net-misc/chrony/files/chrony-1.20-sys_linux.c-gentoo.diff | 27 | ||||
-rw-r--r-- | net-misc/chrony/files/digest-chrony-1.20-r1 | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/chrony/files/chrony-1.20-sys_linux.c-gentoo.diff b/net-misc/chrony/files/chrony-1.20-sys_linux.c-gentoo.diff new file mode 100644 index 000000000000..063be7aba9a6 --- /dev/null +++ b/net-misc/chrony/files/chrony-1.20-sys_linux.c-gentoo.diff @@ -0,0 +1,27 @@ +--- sys_linux.c.orig 2003-10-04 15:56:40.000000000 -0400 ++++ sys_linux.c 2003-10-09 21:06:06.000000000 -0400 +@@ -448,6 +448,7 @@ + + if (TMX_SetFrequency(scaled_freq, required_tick) < 0) { + char buffer[1024]; ++ perror("failed"); + sprintf(buffer, "adjtimex failed for set_frequency, freq_ppm=%10.4e scaled_freq=%10.4e required_tick=%ld", + freq_ppm, scaled_freq, required_tick); + CROAK(buffer); +@@ -600,6 +601,16 @@ + *shift_hz = 7; + return; + } ++ /* GENTOO: Gentoo Linux has hz=200 ++ * tick_nominal: 5000 ++ * tick_lo: 3333 ++ * tick_hi: 6667 */ ++ if (tick >= 3333 && tick <= 6667) { ++ *hz = 200; ++ *shift_hz = 8; ++ return; ++ } ++ /* END GENTOO */ + + for (i=4; i<16; i++) { /* surely 16 .. 32768 is a wide enough range? */ + ihz = 1 << i; diff --git a/net-misc/chrony/files/digest-chrony-1.20-r1 b/net-misc/chrony/files/digest-chrony-1.20-r1 new file mode 100644 index 000000000000..52c899e5af73 --- /dev/null +++ b/net-misc/chrony/files/digest-chrony-1.20-r1 @@ -0,0 +1 @@ +MD5 d0f89e9e13fa47d04fd9f99e56c615c2 chrony-1.20.tar.gz 308253 |