From owner-svn-src-stable@FreeBSD.ORG Thu Apr 4 05:36:11 2013 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9BE4E4AA; Thu, 4 Apr 2013 05:36:11 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 8D9B872D; Thu, 4 Apr 2013 05:36:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r345aBSx027419; Thu, 4 Apr 2013 05:36:11 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r345aBqr027418; Thu, 4 Apr 2013 05:36:11 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201304040536.r345aBqr027418@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 4 Apr 2013 05:36:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r249080 - stable/9/sys/dev/drm2 X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2013 05:36:11 -0000 Author: kib Date: Thu Apr 4 05:36:11 2013 New Revision: 249080 URL: http://svnweb.freebsd.org/changeset/base/249080 Log: MFC r247832: Import the likely() compat macro. MFC r247838: Correct the r247832. Modified: stable/9/sys/dev/drm2/drmP.h Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/drm2/drmP.h ============================================================================== --- stable/9/sys/dev/drm2/drmP.h Thu Apr 4 05:29:37 2013 (r249079) +++ stable/9/sys/dev/drm2/drmP.h Thu Apr 4 05:36:11 2013 (r249080) @@ -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), 1) #define container_of(ptr, type, member) ({ \ __typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );})