mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[PATCH] likely cleanup: remove unlikely in sys_mprotect()
With likely/unlikely profiling on my not-so-busy-typical-developmentsystem there are 5k misses vs 2k hits. So I guess we should remove the unlikely. Signed-off-by: Hua Zhong <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cfd9b7df4a
commit
b344e05c58
1 changed files with 1 additions and 2 deletions
|
|
@ -205,8 +205,7 @@ sys_mprotect(unsigned long start, size_t len, unsigned long prot)
|
|||
/*
|
||||
* Does the application expect PROT_READ to imply PROT_EXEC:
|
||||
*/
|
||||
if (unlikely((prot & PROT_READ) &&
|
||||
(current->personality & READ_IMPLIES_EXEC)))
|
||||
if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC))
|
||||
prot |= PROT_EXEC;
|
||||
|
||||
vm_flags = calc_vm_prot_bits(prot);
|
||||
|
|
|
|||
Loading…
Reference in a new issue