public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Petko Manolov <pmanolov@Lnxw.COM>
To: unlisted-recipients:; (no To-header on input)@localhost.localdomain
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: [patch] page_alloc.c
Date: Mon, 15 Oct 2001 16:27:54 -0700	[thread overview]
Message-ID: <3BCB70FA.5DA4CCEC@lnxw.com> (raw)
In-Reply-To: <20011015234938.A14119@lightning.swansea.linux.org.uk>

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

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


	Petko

[-- Attachment #2: pagealloc.diff --]
[-- Type: text/plain, Size: 333 bytes --]

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

      reply	other threads:[~2001-10-15 23:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-15 22:49 Linux 2.4.12-ac3 Alan Cox
2001-10-15 23:27 ` Petko Manolov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3BCB70FA.5DA4CCEC@lnxw.com \
    --to=pmanolov@lnxw.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox