- likely-cleanup-remove-unlikely-in-sys_mprotect.patch removed from -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 removed from the -mm tree.  Its filename is

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

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: likely cleanup: remove unlikely in sys_mprotect()
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 file changed, 1 insertion(+), 2 deletions(-)

diff -puN mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect mm/mprotect.c
--- a/mm/mprotect.c~likely-cleanup-remove-unlikely-in-sys_mprotect
+++ a/mm/mprotect.c
@@ -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);
_

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

origin.patch
ide-error-handling-fixes.patch
profile-likely-unlikely-macros.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