Re: [git pull] x86 arch updates for v2.6.25

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Adrian Bunk <bunk@...>
Cc: Linus Torvalds <torvalds@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Jeremy Fitzhardinge <jeremy@...>
Date: Thursday, January 31, 2008 - 12:46 pm

* Adrian Bunk <bunk@stusta.de> wrote:


that is an x86.git complication alone, and only affects 32-bit PAE: it 
is solved by the uninlining patch (that i've queued up to before the 
asm-generic/tlb.h revert/fix).

	Ingo

------------->
Subject: x86: uninline __pte_free_tlb() and __pmd_free_tlb()
From: Ingo Molnar <mingo@elte.hu>

this also removes an include file dependency.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/mm/pgtable_32.c     |   19 +++++++++++++++++++
 include/asm-x86/pgalloc_32.h |   19 ++-----------------
 2 files changed, 21 insertions(+), 17 deletions(-)

Index: linux/arch/x86/mm/pgtable_32.c
===================================================================
--- linux.orig/arch/x86/mm/pgtable_32.c
+++ linux/arch/x86/mm/pgtable_32.c
@@ -376,3 +376,22 @@ void check_pgt_cache(void)
 {
 	quicklist_trim(0, pgd_dtor, 25, 16);
 }
+
+void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte)
+{
+	paravirt_release_pt(page_to_pfn(pte));
+	tlb_remove_page(tlb, pte);
+}
+
+void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd)
+{
+	/* This is called just after the pmd has been detached from
+	   the pgd, which requires a full tlb flush to be recognized
+	   by the CPU.  Rather than incurring multiple tlb flushes
+	   while the address space is being pulled down, make the tlb
+	   gathering machinery do a full flush when we're done. */
+	tlb->fullmm = 1;
+
+	paravirt_release_pd(__pa(pmd) >> PAGE_SHIFT);
+	tlb_remove_page(tlb, virt_to_page(pmd));
+}
Index: linux/include/asm-x86/pgalloc_32.h
===================================================================
--- linux.orig/include/asm-x86/pgalloc_32.h
+++ linux/include/asm-x86/pgalloc_32.h
@@ -51,11 +51,7 @@ static inline void pte_free(struct page 
 }
 
 
-static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte)
-{
-	paravirt_release_pt(page_to_pfn(pte));
-	tlb_remove_page(tlb, pte);
-}
+extern void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte);
 
 #ifdef CONFIG_X86_PAE
 /*
@@ -72,18 +68,7 @@ static inline void pmd_free(pmd_t *pmd)
 	free_page((unsigned long)pmd);
 }
 
-static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd)
-{
-	/* This is called just after the pmd has been detached from
-	   the pgd, which requires a full tlb flush to be recognized
-	   by the CPU.  Rather than incurring multiple tlb flushes
-	   while the address space is being pulled down, make the tlb
-	   gathering machinery do a full flush when we're done. */
-	tlb->fullmm = 1;
-
-	paravirt_release_pd(__pa(pmd) >> PAGE_SHIFT);
-	tlb_remove_page(tlb, virt_to_page(pmd));
-}
+extern void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd);
 
 static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd)
 {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Tue Jan 29, 9:15 pm)
Re: [git pull] x86 arch updates for v2.6.25, Amit Shah, (Sat Feb 9, 10:11 am)
Re: [git pull] x86 arch updates for v2.6.25, Jiri Kosina, (Sun Feb 10, 8:30 am)
Re: [git pull] x86 arch updates for v2.6.25, Amit Shah, (Tue Feb 12, 3:16 am)
Re: [git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Wed Feb 13, 4:56 am)
Re: [git pull] x86 arch updates for v2.6.25, Amit Shah, (Wed Feb 13, 6:19 am)
Re: [git pull] x86 arch updates for v2.6.25, Maxim Levitsky, (Mon Feb 4, 10:36 pm)
Re: [git pull] x86 arch updates for v2.6.25, Linus Torvalds, (Mon Feb 4, 11:27 pm)
Re: [git pull] x86 arch updates for v2.6.25, Andi Kleen, (Fri Feb 8, 1:00 pm)
Re: [git pull] x86 arch updates for v2.6.25, Jan Kiszka, (Fri Feb 8, 1:48 pm)
Re: [git pull] x86 arch updates for v2.6.25, Andi Kleen, (Fri Feb 8, 2:57 pm)
Re: [RFC][PATCH] KGDB: remove kgdb-own fault handling, Jason Wessel, (Fri Feb 8, 6:16 pm)
Re: [git pull] x86 arch updates for v2.6.25, Daniel Phillips, (Thu Feb 7, 3:20 pm)
Re: [git pull] x86 arch updates for v2.6.25, John Stoffel, (Tue Feb 5, 1:45 pm)
Re: [git pull] x86 arch updates for v2.6.25, H. Peter Anvin, (Tue Feb 5, 1:52 pm)
Re: [git pull] x86 arch updates for v2.6.25, Bernhard Kaindl, (Fri Feb 8, 2:24 pm)
Re: [git pull] x86 arch updates for v2.6.25, Phil Oester, (Tue Feb 5, 12:11 am)
Re: [git pull] x86 arch updates for v2.6.25, Christoph Hellwig, (Fri Feb 8, 12:48 am)
Re: [git pull] x86 arch updates for v2.6.25, Jan Kiszka, (Fri Feb 8, 5:51 am)
Re: [git pull] x86 arch updates for v2.6.25, Andrew Morton, (Tue Feb 5, 12:54 am)
Re: [git pull] x86 arch updates for v2.6.25, Jan Kiszka, (Wed Feb 6, 8:08 am)
Re: [git pull] x86 arch updates for v2.6.25, Daniel Phillips, (Thu Feb 7, 4:00 pm)
Re: [git pull] x86 arch updates for v2.6.25, Adrian Bunk, (Thu Jan 31, 11:57 am)
Re: [git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Thu Jan 31, 12:00 pm)
Re: [git pull] x86 arch updates for v2.6.25, Adrian Bunk, (Thu Jan 31, 12:12 pm)
Re: [git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Thu Jan 31, 12:15 pm)
Re: [git pull] x86 arch updates for v2.6.25, WANG Cong, (Thu Jan 31, 12:21 pm)
sparc compile error caused by x86 arch updates, Adrian Bunk, (Thu Jan 31, 12:29 pm)
Re: sparc compile error caused by x86 arch updates, Jeremy Fitzhardinge, (Thu Jan 31, 12:50 pm)
Re: sparc compile error caused by x86 arch updates, Ingo Molnar, (Thu Jan 31, 1:43 pm)
Re: sparc compile error caused by x86 arch updates, Adrian Bunk, (Thu Jan 31, 2:21 pm)
Re: sparc compile error caused by x86 arch updates, Ingo Molnar, (Thu Jan 31, 2:38 pm)
Re: sparc compile error caused by x86 arch updates, Jeremy Fitzhardinge, (Thu Jan 31, 1:55 pm)
Re: [git pull] x86 arch updates for v2.6.25, Adrian Bunk, (Thu Jan 31, 12:24 pm)
Re: [git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Thu Jan 31, 12:46 pm)
Re: [git pull] x86 arch updates for v2.6.25, Jeremy Fitzhardinge, (Thu Jan 31, 12:52 pm)
Re: [git pull] x86 arch updates for v2.6.25, Ingo Molnar, (Thu Jan 31, 12:04 pm)
x86 arch updates also broke s390, Adrian Bunk, (Wed Jan 30, 8:33 pm)
Re: x86 arch updates also broke s390, Martin Schwidefsky, (Thu Jan 31, 5:34 am)
Re: x86 arch updates also broke s390, Ingo Molnar, (Fri Feb 1, 5:48 am)
Re: x86 arch updates also broke s390, Martin Schwidefsky, (Fri Feb 1, 5:54 am)
Re: x86 arch updates also broke s390, Ingo Molnar, (Fri Feb 1, 6:02 am)
Re: x86 arch updates also broke s390, Ingo Molnar, (Fri Feb 1, 5:52 am)
Re: x86 arch updates also broke s390, Ingo Molnar, (Thu Jan 31, 6:24 am)
Re: x86 arch updates also broke s390, Nick Piggin, (Thu Jan 31, 8:37 am)