[dahdi-commits] fjoe: freebsd/trunk r7821 - /freebsd/trunk/include/dahdi/compat/bsd.h

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Sun Jan 10 07:30:21 CST 2010


Author: fjoe
Date: Sun Jan 10 07:30:17 2010
New Revision: 7821

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7821
Log:
Add alternative jiffies definition (via "ticks").

Modified:
    freebsd/trunk/include/dahdi/compat/bsd.h

Modified: freebsd/trunk/include/dahdi/compat/bsd.h
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/include/dahdi/compat/bsd.h?view=diff&rev=7821&r1=7820&r2=7821
==============================================================================
--- freebsd/trunk/include/dahdi/compat/bsd.h (original)
+++ freebsd/trunk/include/dahdi/compat/bsd.h Sun Jan 10 07:30:17 2010
@@ -155,6 +155,7 @@
 #define likely(x)       __builtin_expect(!!(x), 1)
 #define unlikely(x)     __builtin_expect(!!(x), 0)
 
+#if 1
 /* emulate jiffies */
 static inline unsigned long _jiffies(void)
 {
@@ -165,6 +166,9 @@
 }
 
 #define jiffies			_jiffies()
+#else
+#define jiffies			ticks
+#endif
 #define HZ			hz
 #define udelay(usec)		DELAY(usec)
 #define mdelay(msec)		DELAY((msec) * 1000)




More information about the dahdi-commits mailing list