diff options
author | Andy Whitcroft <apw@shadowen.org> | 2005-06-23 03:07:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:04 -0400 |
commit | b159d43fbf7eaaac6ecc647f51cf4257332db47b (patch) | |
tree | 968d856c1bd80b47c76d27da272d95bcaf97aa78 /include/linux/mmzone.h | |
parent | 368a0a3afad08069b2679ecaff80fc18c10a6e2a (diff) |
[PATCH] generify early_pfn_to_nid
Provide a default implementation for early_pfn_to_nid returning node 0. Allow
architectures to override this with their own implementation out of
asm/mmzone.h.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Martin Bligh <mbligh@aracnet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 95f4a780ea66..6ef07de98d69 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -435,6 +435,10 @@ extern struct pglist_data contig_page_data; | |||
435 | 435 | ||
436 | #endif | 436 | #endif |
437 | 437 | ||
438 | #ifndef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID | ||
439 | #define early_pfn_to_nid(nid) (0UL) | ||
440 | #endif | ||
441 | |||
438 | #endif /* !__ASSEMBLY__ */ | 442 | #endif /* !__ASSEMBLY__ */ |
439 | #endif /* __KERNEL__ */ | 443 | #endif /* __KERNEL__ */ |
440 | #endif /* _LINUX_MMZONE_H */ | 444 | #endif /* _LINUX_MMZONE_H */ |