Revision: 11639
          http://xorp.svn.sourceforge.net/xorp/?rev=11639&view=rev
Author:   bms_fbsd
Date:     2009-11-29 06:20:09 +0000 (Sun, 29 Nov 2009)

Log Message:
-----------
Add a check for FreeBSD's CLOCK_MONOTONIC_FAST, mostly for testing
callgrind. There is a small decrease in syscall time if clock_gettime()
is called with this slightly faster clock ID.

Modified Paths:
--------------
    trunk/xorp/site_scons/config/allconfig.py

Modified: trunk/xorp/site_scons/config/allconfig.py
===================================================================
--- trunk/xorp/site_scons/config/allconfig.py   2009-11-29 05:05:45 UTC (rev 
11638)
+++ trunk/xorp/site_scons/config/allconfig.py   2009-11-29 06:20:09 UTC (rev 
11639)
@@ -112,6 +112,11 @@
     has_clock_monotonic = conf.CheckDeclaration('CLOCK_MONOTONIC', '#include 
<time.h>')
     if has_clock_monotonic:
         conf.Define('HAVE_CLOCK_MONOTONIC') # autoconf compat
+    # BSD extension
+    has_clock_monotonic_fast = conf.CheckDeclaration(
+       'CLOCK_MONOTONIC_FAST', '#include <time.h>')
+    if has_clock_monotonic_fast:
+        conf.Define('HAVE_CLOCK_MONOTONIC_FAST')
     
     has_struct_timespec = conf.CheckType('struct timespec', includes='#include 
<time.h>')
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

_______________________________________________
Xorp-cvs mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-cvs

Reply via email to