+ likely-cleanup-remove-unlikely-in-sys_mprotect.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     likely cleanup: remove unlikely in sys_mprotect()

has been added to the -mm tree.  Its filename is

     likely-cleanup-remove-unlikely-in-sys_mprotect.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Hua Zhong <hzhong@xxxxxxxxx>

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 <hzhong@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/mprotect.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect mm/mprotect.c
--- 25/mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect	Wed Apr 26 14:28:12 2006
+++ 25-akpm/mm/mprotect.c	Wed Apr 26 14:28:12 2006
@@ -220,8 +220,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);
_

Patches currently in -mm which might be from hzhong@xxxxxxxxx are

origin.patch
likely-cleanup-remove-unlikely-in-sys_mprotect.patch
rename-swapper-to-idle.patch
remove-unlikely-in-might_sleep_if.patch
ide-error-handling-fixes.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux