[-mm patch] Remove ZONE_DMA remains from avr32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Put all available lowmem in ZONE_NORMAL now that ZONE_DMA can be
disabled (which is the right thing to do on AVR32.)

Signed-off-by: Haavard Skinnemoen <[email protected]>
---

Btw, 2.6.18-rc7-mm1 seems to boot on my board, but mdev (busybox's udev
replacement) seems to have a problem with symlinks so I don't have any
tty devices to log into. Using static /dev solves the problem for
now.

 arch/avr32/Kconfig   |    3 ---
 arch/avr32/mm/init.c |    3 +--
 2 files changed, 1 insertion(+), 5 deletions(-)

Index: linux-2.6.18-rc7-mm1/arch/avr32/mm/init.c
===================================================================
--- linux-2.6.18-rc7-mm1.orig/arch/avr32/mm/init.c	2006-09-20
14:07:17.000000000 +0200 +++
linux-2.6.18-rc7-mm1/arch/avr32/mm/init.c	2006-09-20
14:07:45.000000000 +0200 @@ -370,9 +370,8 @@ void __init
paging_init(void) start_pfn >>= PAGE_SHIFT; low =
pgdat->bdata->node_low_pfn; 
-		/* All memory is DMA-able */
 		memset(zones_size, 0, sizeof(zones_size));
-		zones_size[ZONE_DMA] = low - start_pfn;
+		zones_size[ZONE_NORMAL] = low - start_pfn;
 
 		printk("Node %u: start_pfn = 0x%lx, low = 0x%lx\n",
 		       nid, start_pfn, low);
Index: linux-2.6.18-rc7-mm1/arch/avr32/Kconfig
===================================================================
--- linux-2.6.18-rc7-mm1.orig/arch/avr32/Kconfig	2006-09-20
14:47:04.000000000 +0200 +++
linux-2.6.18-rc7-mm1/arch/avr32/Kconfig	2006-09-20
14:47:09.000000000 +0200 @@ -48,9 +48,6 @@ config
RWSEM_XCHGADD_ALGORITHM config GENERIC_BUST_SPINLOCK bool
 
-config GENERIC_ISA_DMA
-	bool
-
 config GENERIC_HWEIGHT
 	bool
 	default y
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux