public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] s390: kernel page table allocation.
@ 2006-08-16 12:06 Martin Schwidefsky
  2006-08-16 13:10 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Schwidefsky @ 2006-08-16 12:06 UTC (permalink / raw)
  To: linux-kernel, heiko.carstens

From: Heiko Carstens <heiko.carstens@de.ibm.com>

[S390] kernel page table allocation.

Don't waste DMA capable pages for identity mapping page tables.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---

 arch/s390/mm/init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -urpN linux-2.6/arch/s390/mm/init.c linux-2.6-patched/arch/s390/mm/init.c
--- linux-2.6/arch/s390/mm/init.c	2006-08-16 13:35:54.000000000 +0200
+++ linux-2.6-patched/arch/s390/mm/init.c	2006-08-16 13:36:34.000000000 +0200
@@ -129,7 +129,7 @@ void __init paging_init(void)
                 /*
                  * pg_table is physical at this point
                  */
-		pg_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
+		pg_table = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);
 
                 pg_dir->pgd0 =  (_PAGE_TABLE | __pa(pg_table));
                 pg_dir->pgd1 =  (_PAGE_TABLE | (__pa(pg_table)+1024));
@@ -219,7 +219,7 @@ void __init paging_init(void)
                         continue;
                 }          
         
-	        pm_dir = (pmd_t *) alloc_bootmem_low_pages(PAGE_SIZE*4);
+		pm_dir = (pmd_t *) alloc_bootmem_pages(PAGE_SIZE * 4);
                 pgd_populate(&init_mm, pg_dir, pm_dir);
 
                 for (j = 0 ; j < PTRS_PER_PMD ; j++,pm_dir++) {
@@ -228,7 +228,7 @@ void __init paging_init(void)
                                 continue; 
                         }          
                         
-                        pt_dir = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
+			pt_dir = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);
                         pmd_populate_kernel(&init_mm, pm_dir, pt_dir);
 	
                         for (k = 0 ; k < PTRS_PER_PTE ; k++,pt_dir++) {

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

* Re: [patch] s390: kernel page table allocation.
  2006-08-16 12:06 [patch] s390: kernel page table allocation Martin Schwidefsky
@ 2006-08-16 13:10 ` Christoph Hellwig
  2006-08-17  9:23   ` Martin Schwidefsky
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2006-08-16 13:10 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: linux-kernel, heiko.carstens

> -		pg_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
> +		pg_table = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);

Again, no need to cast the alloc_bootmem_pages return value.


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

* Re: [patch] s390: kernel page table allocation.
  2006-08-16 13:10 ` Christoph Hellwig
@ 2006-08-17  9:23   ` Martin Schwidefsky
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Schwidefsky @ 2006-08-17  9:23 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel, heiko.carstens

On Wed, 2006-08-16 at 14:10 +0100, Christoph Hellwig wrote:
> > -             pg_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);
> > +             pg_table = (pte_t *) alloc_bootmem_pages(PAGE_SIZE);
> 
> Again, no need to cast the alloc_bootmem_pages return value.

A cleanup of the s390 code in regard to unnecessary casts would make
sense I guess..

-- 
blue skies,
  Martin.

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH

"Reality continues to ruin my life." - Calvin.



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

end of thread, other threads:[~2006-08-17  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 12:06 [patch] s390: kernel page table allocation Martin Schwidefsky
2006-08-16 13:10 ` Christoph Hellwig
2006-08-17  9:23   ` Martin Schwidefsky

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