[PATCH 5/6] AVR32: Use linux/pfn.h
- From: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx>
- Date: Mon, 31 Jul 2006 15:55:59 +0200
As pointed out by Dave Hansen, we should really use linux/pfn.h
instead of our own PFN_UP/PFN_DOWN/PFN_PHYS definitions.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx>
---
arch/avr32/mm/init.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch/avr32/mm/init.c b/arch/avr32/mm/init.c
index 7bbbd7e..e4b6707 100644
--- a/arch/avr32/mm/init.c
+++ b/arch/avr32/mm/init.c
@@ -14,6 +14,7 @@ #include <linux/initrd.h>
#include <linux/mmzone.h>
#include <linux/bootmem.h>
#include <linux/pagemap.h>
+#include <linux/pfn.h>
#include <linux/nodemask.h>
#include <asm/page.h>
@@ -90,10 +91,6 @@ static void __init print_memory_map(cons
}
}
-#define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT)
-#define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
-#define PFN_PHYS(x) ((x) << PAGE_SHIFT)
-
#define MAX_LOWMEM HIGHMEM_START
#define MAX_LOWMEM_PFN PFN_DOWN(MAX_LOWMEM)
--
1.4.0
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 6/6] AVR32: Kill CONFIG_DISCONTIGMEM support completely
- From: Haavard Skinnemoen
- [PATCH 6/6] AVR32: Kill CONFIG_DISCONTIGMEM support completely
- References:
- [PATCH 1/6] AVR32: Use auto.conf instead of MARKER
- From: Haavard Skinnemoen
- [PATCH 2/6] AVR32: Don't assume anything about MAX_NR_ZONES
- From: Haavard Skinnemoen
- [PATCH 3/6] AVR32: Add nsproxy definition
- From: Haavard Skinnemoen
- [PATCH 4/6] AVR32: Add I/O port access primitives
- From: Haavard Skinnemoen
- [PATCH 1/6] AVR32: Use auto.conf instead of MARKER
- Prev by Date: [PATCH 0/6] AVR32 update for 2.6.18-rc2-mm1
- Next by Date: [PATCH 3/6] AVR32: Add nsproxy definition
- Previous by thread: [PATCH 4/6] AVR32: Add I/O port access primitives
- Next by thread: [PATCH 6/6] AVR32: Kill CONFIG_DISCONTIGMEM support completely
- Index(es):