[patch] page_alloc.c

Petko Manolov (pmanolov@Lnxw.COM)
Mon, 15 Oct 2001 16:27:54 -0700


This is a multi-part message in MIME format.
--------------B533999AC4575198E3C47AC6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

This micro patch removes redundant waitqueue_active() from
__alloc_pages()
It is not too much of a speedup, but still...

Petko
--------------B533999AC4575198E3C47AC6
Content-Type: text/plain; charset=us-ascii;
name="pagealloc.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pagealloc.diff"

--- 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 (;;) {

--------------B533999AC4575198E3C47AC6--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/