summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm2
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-03-05 09:07:01 +0000
committerkib <kib@FreeBSD.org>2013-03-05 09:07:01 +0000
commit74ea46d9eedeafa2223a3c26e4a4d085581516a0 (patch)
treea1e7a4ea00d3f9b924001f349b939fe7e3be7f9c /sys/dev/drm2
parent793da79af8292525d65c090f712685472aad4154 (diff)
downloadFreeBSD-src-74ea46d9eedeafa2223a3c26e4a4d085581516a0.zip
FreeBSD-src-74ea46d9eedeafa2223a3c26e4a4d085581516a0.tar.gz
Import the likely() compat macro.
Sponsored by: The FreeBSD Foundation MFC after: 1 month
Diffstat (limited to 'sys/dev/drm2')
-rw-r--r--sys/dev/drm2/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h
index 9b721a8..ecd77e2 100644
--- a/sys/dev/drm2/drmP.h
+++ b/sys/dev/drm2/drmP.h
@@ -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) );})
OpenPOWER on IntegriCloud