diff options
author | Mel Gorman <mel@csn.ul.ie> | 2007-07-17 07:03:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:22:59 -0400 |
commit | ed7ed365172e27b0efe9d43cc962723c7193e34e (patch) | |
tree | 6c22daf6908f92c64aae2b425e6383fe0ed404ac /include/linux/mm.h | |
parent | 396faf0303d273219db5d7eb4a2879ad977ed185 (diff) |
handle kernelcore=: generic
This patch adds the kernelcore= parameter for x86.
Once all patches are applied, a new command-line parameter exist and a new
sysctl. This patch adds the necessary documentation.
From: Yasunori Goto <y-goto@jp.fujitsu.com>
When "kernelcore" boot option is specified, kernel can't boot up on ia64
because of an infinite loop. In addition, the parsing code can be handled
in an architecture-independent manner.
This patch uses common code to handle the kernelcore= parameter. It is
only available to architectures that support arch-independent zone-sizing
(i.e. define CONFIG_ARCH_POPULATES_NODE_MAP). Other architectures will
ignore the boot parameter.
[bunk@stusta.de: make cmdline_parse_kernelcore() static]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Acked-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 857e44817178..97d0cddfd223 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1005,7 +1005,6 @@ extern unsigned long find_max_pfn_with_active_regions(void); | |||
1005 | extern void free_bootmem_with_active_regions(int nid, | 1005 | extern void free_bootmem_with_active_regions(int nid, |
1006 | unsigned long max_low_pfn); | 1006 | unsigned long max_low_pfn); |
1007 | extern void sparse_memory_present_with_active_regions(int nid); | 1007 | extern void sparse_memory_present_with_active_regions(int nid); |
1008 | extern int cmdline_parse_kernelcore(char *p); | ||
1009 | #ifndef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID | 1008 | #ifndef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID |
1010 | extern int early_pfn_to_nid(unsigned long pfn); | 1009 | extern int early_pfn_to_nid(unsigned long pfn); |
1011 | #endif /* CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID */ | 1010 | #endif /* CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID */ |