瀏覽代碼

x86: introduce likely in macro.

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>
Glauber Costa 17 年之前
父節點
當前提交
8b0a8aaf05
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-x86/uaccess_64.h

+ 1 - 1
include/asm-x86/uaccess_64.h

@@ -48,7 +48,7 @@
 	flag;								\
 	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
  * The exception table consists of pairs of addresses: the first is the