Skip to content

Commit

Permalink
x86: introduce likely in macro.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent c28b95d commit 8b0a8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/uaccess_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b0a8aa

Please sign in to comment.