Author: kib
Date: Tue Mar  5 09:07:01 2013
New Revision: 247832
URL: http://svnweb.freebsd.org/changeset/base/247832

Log:
  Import the likely() compat macro.
  
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 month

Modified:
  head/sys/dev/drm2/drmP.h

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h    Tue Mar  5 08:09:53 2013        (r247831)
+++ head/sys/dev/drm2/drmP.h    Tue Mar  5 09:07:01 2013        (r247832)
@@ -228,6 +228,7 @@ typedef void                        irqreturn_t;
 #define IRQ_NONE               /* nothing */
 
 #define unlikely(x)            __builtin_expect(!!(x), 0)
+#define likely(x)              __builtin_expect((x), 0)
 #define container_of(ptr, type, member) ({                     \
        __typeof( ((type *)0)->member ) *__mptr = (ptr);        \
        (type *)( (char *)__mptr - offsetof(type,member) );})
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to