procps (1:3.2.8-9squeeze1) sysinfo_kfreebsd_hertz.patch

Summary

 proc/sysinfo.c |    8 ++++++++
 1 file changed, 8 insertions(+)

    
download this patch

Patch contents

Description: Fix Hertz calculation for kfreebsd
Bug-Debian: http://bugs.debian.org/460331
Author: Petr Salinger
--- a/proc/sysinfo.c
+++ b/proc/sysinfo.c
@@ -230,6 +230,14 @@
     fputs("2.4+ kernel w/o ELF notes? -- report this\n", stderr);
   }
 #endif
+#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
+  /* On FreeBSD the Hertz hack is unrelaible, there is no ELF note and
+   * Hertz isn't defined in asm/params.h 
+   * See Debian Bug #460331
+   */
+    Hertz = 100;
+    return;
+#endif
   old_Hertz_hack();
 }