lkml.org 
[lkml]   [2001]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] page_alloc.c
This micro patch removes redundant waitqueue_active() from
__alloc_pages()
It is not too much of a speedup, but still...


Petko--- linux-2.4.12/mm/page_alloc.c.orig Mon Oct 15 15:52:39 2001
+++ linux/mm/page_alloc.c Mon Oct 15 15:53:45 2001
@@ -335,8 +335,7 @@

classzone->need_balance = 1;
mb();
- if (waitqueue_active(&kswapd_wait))
- wake_up_interruptible(&kswapd_wait);
+ wake_up_interruptible(&kswapd_wait);

zone = zonelist->zones;
for (;;) {
\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.060 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site