summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-06-07 16:44:33 +0000
committerJeroen Roovers <jer@gentoo.org>2011-06-07 16:44:33 +0000
commit86d8758bab375a6fbeb0ac9385af466fee20e35a (patch)
tree71ec7bff9a2486f5ce3032d4fab9cc12724ace09 /net-misc/chrony/files
parentFix Changelog. (diff)
downloadgentoo-2-86d8758bab375a6fbeb0ac9385af466fee20e35a.tar.gz
gentoo-2-86d8758bab375a6fbeb0ac9385af466fee20e35a.tar.bz2
gentoo-2-86d8758bab375a6fbeb0ac9385af466fee20e35a.zip
Remove _pre logic since it is not effective. Patch by GerbilSoft (bug #370391) to recognise Linux 3.0.
(Portage version: 2.2.0_alpha38/cvs/Linux i686)
Diffstat (limited to 'net-misc/chrony/files')
-rw-r--r--net-misc/chrony/files/chrony-1.25-linux3.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/chrony/files/chrony-1.25-linux3.patch b/net-misc/chrony/files/chrony-1.25-linux3.patch
new file mode 100644
index 000000000000..473759f24da8
--- /dev/null
+++ b/net-misc/chrony/files/chrony-1.25-linux3.patch
@@ -0,0 +1,16 @@
+diff -ur chrony-1.25.orig//sys_linux.c chrony-1.25//sys_linux.c
+--- chrony-1.25.orig//sys_linux.c 2011-05-04 06:29:40.000000000 -0400
++++ chrony-1.25//sys_linux.c 2011-06-07 01:29:18.254878791 -0400
+@@ -1050,6 +1050,12 @@
+ LOG_FATAL(LOGF_SysLinux, "Kernel version not supported yet, sorry.");
+ }
+ break;
++ case 3:
++ /* Linux 3.0 (formerly 2.6.40) */
++ /* These don't need scaling. (similar to 2.6.28 and later) */
++ freq_scale = 1.0;
++ have_readonly_adjtime = 2;
++ break;
+ default:
+ LOG_FATAL(LOGF_SysLinux, "Kernel's major version not supported yet, sorry");
+ break;