+ remove-unlikely-in-might_sleep_if.patch added to -mm tree

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

 



The patch titled

     remove unlikely() in might_sleep_if()

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

     remove-unlikely-in-might_sleep_if.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>

The likely() profiling tools show that __alloc_page() causes a lot of misses:

!       132    119193 __alloc_pages():mm/page_alloc.c@937

Because most __alloc_page() calls are not atomic.

Signed-off-by: Hua Zhong <hzhong@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/kernel.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/kernel.h~remove-unlikely-in-might_sleep_if include/linux/kernel.h
--- devel/include/linux/kernel.h~remove-unlikely-in-might_sleep_if	2006-04-24 19:15:27.000000000 -0700
+++ devel-akpm/include/linux/kernel.h	2006-04-24 19:15:40.000000000 -0700
@@ -79,7 +79,7 @@ extern int cond_resched(void);
 # define might_sleep() do { might_resched(); } while (0)
 #endif
 
-#define might_sleep_if(cond) do { if (unlikely(cond)) might_sleep(); } while (0)
+#define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0)
 
 #define abs(x) ({				\
 		int __x = (x);			\
_

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

origin.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