]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: introduce likely in macro.
authorGlauber Costa <gcosta@redhat.com>
Mon, 30 Jun 2008 20:34:39 +0000 (17:34 -0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 07:14:15 +0000 (09:14 +0200)
Put the likely hint in access_ok. Just for
bisectability.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/uaccess_64.h

index dc6dde0583811c15918d6b0055efe2c4d498cf17..0077dbe9359eac2e29c7e89234599a7ccd114f48 100644 (file)
@@ -48,7 +48,7 @@
        flag;                                                           \
 })
 
-#define access_ok(type, addr, size) (__range_not_ok(addr, size) == 0)
+#define access_ok(type, addr, size) (likely(__range_not_ok(addr, size) == 0))
 
 /*
  * The exception table consists of pairs of addresses: the first is the