public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@hp.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>,
	davidm@hpl.hp.com, linux-ia64@linuxia64.org
Subject: Re: [PATCH] Clean up asm/pgalloc.h include (ia64)
Date: Mon, 19 Apr 2004 14:56:56 -0600	[thread overview]
Message-ID: <1082408216.4660.132.camel@tdi> (raw)
In-Reply-To: <E1BFYi5-00055v-NZ@dyn-67.arm.linux.org.uk>

On Mon, 2004-04-19 at 07:21, Russell King wrote:
> This patch cleans up needless includes of asm/pgalloc.h from the
> arch/ia64/ subtree.  This has not been compile tested, so
> needs the architecture maintainers (or willing volunteers) to
> test.
> 
> Please ensure that at least the first two patches have already
> been applied to your tree; they can be found at:
> 
> 	http://lkml.org/lkml/2004/4/18/86
> 	http://lkml.org/lkml/2004/4/18/87
> 
> This patch is part of a larger patch aiming towards getting the
> include of asm/pgtable.h out of linux/mm.h, so that asm/pgtable.h
> can sanely get at things like mm_struct and friends.
> 
> In the event that any of these files fails to build, chances are
> you need to include some other header file rather than pgalloc.h.
> Normally this is either asm/pgtable.h (unlikely), asm/cacheflush.h
> or asm/tlbflush.h.

Russell,

   On ia64, the show_mem sysrq wants to print pgtable_cache_size. 
asm-ia64/tlb.h including asm/pgalloc.h was hiding this for the
discontig, NUMA build, but the contig memory build was blowing up. 
Unless someone is desperately attached to printing out the number of
pages in page table cache, I think we can just drop it.  The patch below
replaces your patches for arch/ia64/contig.c, discontig.c and adds a
chunk for asm-ia64/tlb.h to get rid of the pgalloc.h include there. 
Built and booted NUMA and non-NUMA configs.  Thanks,

	Alex

===== arch/ia64/mm/discontig.c 1.13 vs edited =====
--- 1.13/arch/ia64/mm/discontig.c	Thu Mar 11 23:15:26 2004
+++ edited/arch/ia64/mm/discontig.c	Mon Apr 19 14:36:36 2004
@@ -16,7 +16,6 @@
 #include <linux/bootmem.h>
 #include <linux/acpi.h>
 #include <linux/efi.h>
-#include <asm/pgalloc.h>
 #include <asm/tlb.h>
 #include <asm/meminit.h>
 #include <asm/numa.h>
@@ -513,7 +512,6 @@
 		printk("\t%d pages shared\n", shared);
 		printk("\t%d pages swap cached\n", cached);
 	}
-	printk("Total of %ld pages in page table cache\n", pgtable_cache_size);
 	printk("%d free buffer pages\n", nr_free_buffer_pages());
 }
 
===== arch/ia64/mm/contig.c 1.4 vs edited =====
--- 1.4/arch/ia64/mm/contig.c	Thu Mar 11 22:59:24 2004
+++ edited/arch/ia64/mm/contig.c	Mon Apr 19 14:28:51 2004
@@ -21,7 +21,6 @@
 #include <linux/swap.h>
 
 #include <asm/meminit.h>
-#include <asm/pgalloc.h>
 #include <asm/pgtable.h>
 #include <asm/sections.h>
 
@@ -60,7 +59,6 @@
 	printk("%d reserved pages\n", reserved);
 	printk("%d pages shared\n", shared);
 	printk("%d pages swap cached\n", cached);
-	printk("%ld pages in page table cache\n", pgtable_cache_size);
 }
 
 /* physical address where the bootmem map is located */
===== include/asm-ia64/tlb.h 1.19 vs edited =====
--- 1.19/include/asm-ia64/tlb.h	Mon Feb 23 13:02:43 2004
+++ edited/include/asm-ia64/tlb.h	Mon Apr 19 14:27:13 2004
@@ -41,9 +41,10 @@
 #include <linux/mm.h>
 #include <linux/swap.h>
 
-#include <asm/pgalloc.h>
 #include <asm/processor.h>
 #include <asm/tlbflush.h>
+
+extern void check_pgt_cache(void);
 
 #ifdef CONFIG_SMP
 # define FREE_PTE_NR		2048



  reply	other threads:[~2004-04-19 20:57 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-18 22:17 [PATCH 1/2] Clean up asm/pgalloc.h include Russell King
2004-04-18 22:23 ` [PATCH 2/2] " Russell King
2004-04-18 22:48   ` [PATCH 3/2] " Russell King
2004-04-19 13:20   ` [PATCH] Clean up asm/pgalloc.h include (alpha) Russell King
2004-04-19 20:55     ` Ivan Kokshaysky
2004-04-19 13:20   ` [PATCH] Clean up asm/pgalloc.h include (arm26) Russell King
2004-04-19 13:20   ` [PATCH] Clean up asm/pgalloc.h include (cris) Russell King
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (H8300) Russell King
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (ia64) Russell King
2004-04-19 20:56     ` Alex Williamson [this message]
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (m68k) Russell King
2004-04-19 16:18     ` Geert Uytterhoeven
2004-04-19 16:30       ` Russell King
2004-04-19 16:39         ` Geert Uytterhoeven
2004-04-19 16:38       ` Russell King
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (m68knommu) Russell King
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (mips) Russell King
2004-04-19 16:36     ` Ralf Baechle
2004-04-19 13:21   ` [PATCH] Clean up asm/pgalloc.h include (parisc) Russell King
2004-04-19 13:22   ` [PATCH] Clean up asm/pgalloc.h include (ppc) Russell King
2004-04-29 22:08     ` Tom Rini
2004-04-19 13:22   ` [PATCH] Clean up asm/pgalloc.h include (ppc64) Russell King
2004-04-19 13:22   ` [PATCH] Clean up asm/pgalloc.h include (s390) Russell King
2004-04-19 13:22   ` [PATCH] Clean up asm/pgalloc.h include (sh) Russell King
2004-04-20 14:46     ` Paul Mundt
2004-04-20 16:01       ` Hugh Dickins
2004-04-20 16:19         ` Paul Mundt
2004-04-19 13:22   ` [PATCH] Clean up asm/pgalloc.h include (sparc) Russell King
2004-04-19 13:23   ` [PATCH] Clean up asm/pgalloc.h include (sparc64) Russell King
2004-04-19 13:23   ` [PATCH] Clean up asm/pgalloc.h include (v850) Russell King
2004-04-19 13:23   ` [PATCH] Clean up asm/pgalloc.h include (x86_64) Russell King
2004-04-19 14:03     ` [discuss] " Andi Kleen

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=1082408216.4660.132.camel@tdi \
    --to=alex.williamson@hp.com \
    --cc=davidm@hpl.hp.com \
    --cc=linux-ia64@linuxia64.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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