From: Hua Zhong 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 Signed-off-by: Andrew Morton --- mm/mprotect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect mm/mprotect.c --- devel/mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect 2006-05-17 13:09:42.000000000 -0700 +++ devel-akpm/mm/mprotect.c 2006-05-17 13:09:42.000000000 -0700 @@ -205,8 +205,7 @@ sys_mprotect(unsigned long start, size_t /* * 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); _