buildroot/package/dhrystone/dhrystone-2-HZ.patch
Mike Frysinger 9ffc2e809c dhrystone: new benchmark package
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-08 23:37:48 +01:00

18 lines
369 B
Diff

Get HZ value from system rather than requiring via CPPFLAGS
Patch by Robin Getz <rgetz@blackfin.uclinux.org>
--- a/dhry.h
+++ b/dhry.h
@@ -359,6 +359,10 @@
/* for "times" */
#endif
+#ifndef HZ
+#include <sys/param.h>
+#endif
+
#define Mic_secs_Per_Second 1000000.0
/* Berkeley UNIX C returns process times in seconds/HZ */