Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24294
b: refs/heads/master
c: 7126cff
h: refs/heads/master
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Mar 27, 2006
1 parent ecdc4f6 commit 1b1c010
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd6cc7631cf2a63b3d6c32619054e017479e72ca
refs/heads/master: 7126cffe74f0dbcd015aaabab01069f422526535
14 changes: 0 additions & 14 deletions trunk/include/asm-m32r/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions trunk/include/asm-m32r/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;

#ifndef CONFIG_DISCONTIGMEM
#define PFN_BASE (CONFIG_MEMORY_START >> PAGE_SHIFT)
#define pfn_to_page(pfn) (mem_map + ((pfn) - PFN_BASE))
#define page_to_pfn(page) \
((unsigned long)((page) - mem_map) + PFN_BASE)
#define ARCH_PFN_OFFSET PFN_BASE
#define pfn_valid(pfn) (((pfn) - PFN_BASE) < max_mapnr)
#endif /* !CONFIG_DISCONTIGMEM */

Expand All @@ -92,6 +90,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;

#endif /* __KERNEL__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>

#endif /* _ASM_M32R_PAGE_H */
Expand Down

0 comments on commit 1b1c010

Please sign in to comment.