linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: akpm@osdl.org
Cc: george@mvista.com, linux-mm@kvack.org, Dave Hansen <haveblue@us.ibm.com>
Subject: [patch 2/2] kill off highmem_start_page (in -mm)
Date: Wed, 17 Nov 2004 13:18:40 -0800	[thread overview]
Message-ID: <E1CUXCL-0006YD-00@kernel.beaverton.ibm.com> (raw)

This patch should fix kgdb to work without highmem_start_page. 
However, I don't have a kgdb setup, and I'd appreciate someone
testing this to make sure my selection of a new variable is OK.

Also, should this function possibly be using system_state, instead?

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug-dave/arch/i386/lib/kgdb_serial.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/i386/lib/kgdb_serial.c~A1-no-highmem_start_page-kgdb arch/i386/lib/kgdb_serial.c
--- memhotplug/arch/i386/lib/kgdb_serial.c~A1-no-highmem_start_page-kgdb	2004-11-17 13:10:33.000000000 -0800
+++ memhotplug-dave/arch/i386/lib/kgdb_serial.c	2004-11-17 13:10:33.000000000 -0800
@@ -407,7 +407,7 @@ void shutdown_for_kgdb(struct async_stru
 #ifdef CONFIG_DISCONTIGMEM
 static inline int kgdb_mem_init_done(void)
 {
-	return highmem_start_page != NULL;
+	return totalram_pages != 0;
 }
 #else
 static inline int kgdb_mem_init_done(void)
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

                 reply	other threads:[~2004-11-17 21:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1CUXCL-0006YD-00@kernel.beaverton.ibm.com \
    --to=haveblue@us.ibm.com \
    --cc=akpm@osdl.org \
    --cc=george@mvista.com \
    --cc=linux-mm@kvack.org \
    /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