summaryrefslogtreecommitdiff
path: root/include/asm-m32r/mmzone.h
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2006-03-27 09:15:42 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 16:44:45 (GMT)
commit7126cffe74f0dbcd015aaabab01069f422526535 (patch)
tree2afae8c0ad021ac99b21b38c79988d5e6a208da1 /include/asm-m32r/mmzone.h
parentdd6cc7631cf2a63b3d6c32619054e017479e72ca (diff)
downloadlinux-7126cffe74f0dbcd015aaabab01069f422526535.tar.xz
[PATCH] unify pfn_to_page: m32r pfn_to_page
m32r can use generic funcs. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Hirokazu Takata <takata.hirokazu@renesas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-m32r/mmzone.h')
-rw-r--r--include/asm-m32r/mmzone.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/asm-m32r/mmzone.h b/include/asm-m32r/mmzone.h
index adc7970..9f3b5ac 100644
--- a/include/asm-m32r/mmzone.h
+++ b/include/asm-m32r/mmzone.h
@@ -21,20 +21,6 @@ extern struct pglist_data *node_data[];
__pgdat->node_start_pfn + __pgdat->node_spanned_pages - 1; \
})
-#define pfn_to_page(pfn) \
-({ \
- unsigned long __pfn = pfn; \
- int __node = pfn_to_nid(__pfn); \
- &NODE_DATA(__node)->node_mem_map[node_localnr(__pfn,__node)]; \
-})
-
-#define page_to_pfn(pg) \
-({ \
- struct page *__page = pg; \
- struct zone *__zone = page_zone(__page); \
- (unsigned long)(__page - __zone->zone_mem_map) \
- + __zone->zone_start_pfn; \
-})
#define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
/*
* pfn_valid should be made as fast as possible, and the current definition