public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data
@ 2003-05-23 17:52 Martin Hicks
  2003-05-23 18:39 ` Christoph Hellwig
  2003-05-23 19:00 ` Martin Hicks
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Hicks @ 2003-05-23 17:52 UTC (permalink / raw)
  To: linux-ia64

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


Hello,

Here is a patch to move the mmu_gathers struct into the per-cpu data
region.

The patch is against the linux-ia64-2.5 tree.

-- 
Wild Open Source Inc.                  mort@wildopensource.com


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1100  -> 1.1101 
#	include/asm-ia64/tlb.h	1.13    -> 1.14   
#	 arch/ia64/mm/init.c	1.36    -> 1.37   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/22	mort@green.i.bork.org	1.1101
# per-cpu-mmu_gathers.diff
# --------------------------------------------
#
diff -Nru a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
--- a/arch/ia64/mm/init.c	Fri May 23 13:48:36 2003
+++ b/arch/ia64/mm/init.c	Fri May 23 13:48:36 2003
@@ -29,7 +29,7 @@
 #include <asm/uaccess.h>
 #include <asm/tlb.h>
 
-struct mmu_gather mmu_gathers[NR_CPUS];
+DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
 
 /* References to section boundaries: */
 extern char _stext, _etext, _edata, __init_begin, __init_end;
diff -Nru a/include/asm-ia64/tlb.h b/include/asm-ia64/tlb.h
--- a/include/asm-ia64/tlb.h	Fri May 23 13:48:36 2003
+++ b/include/asm-ia64/tlb.h	Fri May 23 13:48:36 2003
@@ -63,7 +63,7 @@
 };
 
 /* Users of the generic TLB shootdown code must declare this storage space. */
-extern struct mmu_gather	mmu_gathers[NR_CPUS];
+DECLARE_PER_CPU(struct mmu_gather, mmu_gathers);
 
 /*
  * Flush the TLB for address range START to END and, if not in fast mode, release the
@@ -125,7 +125,7 @@
 static inline struct mmu_gather *
 tlb_gather_mmu (struct mm_struct *mm, unsigned int full_mm_flush)
 {
-	struct mmu_gather *tlb = &mmu_gathers[smp_processor_id()];
+	struct mmu_gather *tlb = &per_cpu(mmu_gathers, smp_processor_id());
 
 	tlb->mm = mm;
 	/*

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data
  2003-05-23 17:52 [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data Martin Hicks
@ 2003-05-23 18:39 ` Christoph Hellwig
  2003-05-23 19:00 ` Martin Hicks
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2003-05-23 18:39 UTC (permalink / raw)
  To: linux-ia64

On Fri, May 23, 2003 at 01:52:46PM -0400, Martin Hicks wrote:
> 
> Hello,
> 
> Here is a patch to move the mmu_gathers struct into the per-cpu data
> region.
> 
> The patch is against the linux-ia64-2.5 tree.

Could you also submit such a patch for asm-generic/tlb.h and the other arches?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data
  2003-05-23 17:52 [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data Martin Hicks
  2003-05-23 18:39 ` Christoph Hellwig
@ 2003-05-23 19:00 ` Martin Hicks
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Hicks @ 2003-05-23 19:00 UTC (permalink / raw)
  To: linux-ia64

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


On Fri, May 23, 2003 at 07:39:25PM +0100, Christoph Hellwig wrote:
> On Fri, May 23, 2003 at 01:52:46PM -0400, Martin Hicks wrote:
> > 
> > Hello,
> > 
> > Here is a patch to move the mmu_gathers struct into the per-cpu data
> > region.
> > 
> > The patch is against the linux-ia64-2.5 tree.
> 
> Could you also submit such a patch for asm-generic/tlb.h and the other arches?

Yes.  I was going to whip that up and post it to linux-kernel sometime
soon.

mh

-- 
Wild Open Source Inc.                  mort@wildopensource.com

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-23 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-23 17:52 [Linux-ia64] [PATCH] 2.5 - Change mmu_gathers into per-cpu data Martin Hicks
2003-05-23 18:39 ` Christoph Hellwig
2003-05-23 19:00 ` Martin Hicks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox