x86: introduce likely in macro.
[sfrench/cifs-2.6.git] / 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