From: Hua Zhong 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 Signed-off-by: Andrew Morton --- 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); \ _