diff options
author | Jan Beulich <jbeulich@novell.com> | 2009-03-12 08:40:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-12 21:37:18 -0400 |
commit | dc9dd5cc854cde110d2421f3a11fec7597e059c1 (patch) | |
tree | 00df2655bfece407b439c2e5e2d7c680cf722953 /arch/x86/mm/init.c | |
parent | 13c6c53282d99c82e79b02477efd2c1e30a991ef (diff) |
x86: move save_mr() into .meminit.text
Impact: cleanup, save memory
The function is only being called from boot or memory hotplug paths.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <49B910B6.76E4.0078.0@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r-- | arch/x86/mm/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 15219e0d1243..fd3da1dda1c9 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -94,9 +94,9 @@ struct map_range { | |||
94 | #define NR_RANGE_MR 5 | 94 | #define NR_RANGE_MR 5 |
95 | #endif | 95 | #endif |
96 | 96 | ||
97 | static int save_mr(struct map_range *mr, int nr_range, | 97 | static int __meminit save_mr(struct map_range *mr, int nr_range, |
98 | unsigned long start_pfn, unsigned long end_pfn, | 98 | unsigned long start_pfn, unsigned long end_pfn, |
99 | unsigned long page_size_mask) | 99 | unsigned long page_size_mask) |
100 | { | 100 | { |
101 | if (start_pfn < end_pfn) { | 101 | if (start_pfn < end_pfn) { |
102 | if (nr_range >= NR_RANGE_MR) | 102 | if (nr_range >= NR_RANGE_MR) |