summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/uaccess_64.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-30 17:34:39 -0300
committerIngo Molnar <mingo@elte.hu>2008-07-09 09:14:15 +0200
commit8b0a8aaf05325a1a96f53b45708f77599da35161 (patch)
treee47e67d647b0ec4faf7afc00a52bf12f42ac2740 /include/asm-x86/uaccess_64.h
parentc28b95d9bb7da0c3be22826c56a05899e21e5ece (diff)
downloadblackbird-obmc-linux-8b0a8aaf05325a1a96f53b45708f77599da35161.tar.gz
blackbird-obmc-linux-8b0a8aaf05325a1a96f53b45708f77599da35161.zip
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>
Diffstat (limited to 'include/asm-x86/uaccess_64.h')
-rw-r--r--include/asm-x86/uaccess_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/uaccess_64.h b/include/asm-x86/uaccess_64.h
index dc6dde058381..0077dbe9359e 100644
--- a/include/asm-x86/uaccess_64.h
+++ b/include/asm-x86/uaccess_64.h
@@ -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
OpenPOWER on IntegriCloud