Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24295
b: refs/heads/master
c: a02036e
h: refs/heads/master
i:
  24293: ecdc4f6
  24291: bd18bc3
  24287: f257abf
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Mar 27, 2006
1 parent 1b1c010 commit 0fdc6ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 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: 7126cffe74f0dbcd015aaabab01069f422526535
refs/heads/master: a02036e796e5046fe0463b9a092e9b617c525866
14 changes: 0 additions & 14 deletions trunk/include/asm-mips/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,6 @@
NODE_DATA(__n)->node_spanned_pages) : 0);\
})

#define pfn_to_page(pfn) \
({ \
unsigned long __pfn = (pfn); \
pg_data_t *__pg = NODE_DATA(pfn_to_nid(__pfn)); \
__pg->node_mem_map + (__pfn - __pg->node_start_pfn); \
})

#define page_to_pfn(p) \
({ \
struct page *__p = (p); \
struct zone *__z = page_zone(__p); \
((__p - __z->zone_mem_map) + __z->zone_start_pfn); \
})

/* XXX: FIXME -- wli */
#define kern_addr_valid(addr) (0)

Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-mips/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)

#ifndef CONFIG_NEED_MULTIPLE_NODES
#define pfn_to_page(pfn) (mem_map + (pfn))
#define page_to_pfn(page) ((unsigned long)((page) - mem_map))
#define pfn_valid(pfn) ((pfn) < max_mapnr)
#endif

Expand All @@ -160,6 +158,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
#define WANT_PAGE_VIRTUAL
#endif

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

#endif /* _ASM_PAGE_H */

0 comments on commit 0fdc6ae

Please sign in to comment.