Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16312
b: refs/heads/master
c: 2bdaf11
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Jan 6, 2006
1 parent 2ae512c commit 4e77f8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 03b00ebcc804180829d513df9e92e5fe8f72aacf
refs/heads/master: 2bdaf115b1c364d89484b59d5b937973f1c5a5c3
7 changes: 6 additions & 1 deletion trunk/include/linux/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ extern struct pglist_data contig_page_data;
#define NODE_DATA(nid) (&contig_page_data)
#define NODE_MEM_MAP(nid) mem_map
#define MAX_NODES_SHIFT 1
#define pfn_to_nid(pfn) (0)

#else /* CONFIG_NEED_MULTIPLE_NODES */

Expand Down Expand Up @@ -470,6 +469,10 @@ extern struct pglist_data contig_page_data;
#define early_pfn_to_nid(nid) (0UL)
#endif

#ifdef CONFIG_FLATMEM
#define pfn_to_nid(pfn) (0)
#endif

#define pfn_to_section_nr(pfn) ((pfn) >> PFN_SECTION_SHIFT)
#define section_nr_to_pfn(sec) ((sec) << PFN_SECTION_SHIFT)

Expand Down Expand Up @@ -594,6 +597,8 @@ static inline int pfn_valid(unsigned long pfn)
*/
#ifdef CONFIG_NUMA
#define pfn_to_nid early_pfn_to_nid
#else
#define pfn_to_nid(pfn) (0)
#endif

#define early_pfn_valid(pfn) pfn_valid(pfn)
Expand Down

0 comments on commit 4e77f8f

Please sign in to comment.