x86: move save_mr() into .meminit.text
PATCH 1/1 x86: move save_mr() into .meminit.text
Impact: cleanup
The function is only being called from boot or memory hotplug paths.
Signed-off-by Jan Beulich <[email protected]>
--- arch/x86/mm/init_64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/init.c +3 -3
@@ -94,9 +94,9 @@ struct map_range {#define NR_RANGE_MR 5#endif -static int save_mr (struct map_range *mr,int nr_range, -unsigned long start_pfn,unsigned long end_pfn, -unsigned long page_size_mask) +static int __meminit save_mr (struct map_range *mr,int nr_range, +unsigned long start_pfn,unsigned long end_pfn, +unsigned long page_size_mask) {if (start_pfn < end_pfn) {if (nr_range >=NR_RANGE_MR )
Commit-ID: dc9dd5cc854cde110d2421f3a11fec7597e059c1 Gitweb: http://git.kernel.org/tip/dc9dd5cc854cde110d2421f3a11fec7597e059c1 Author: Jan Beulich <[email protected]> AuthorDate: Thu, 12 Mar 2009 12:40:06 +0000 Commit: Ingo Molnar <[email protected]> CommitDate: Fri, 13 Mar 2009 02:37:18 +0100
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 <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/mm/init.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/mm/init.c +3 -3
@@ -94,9 +94,9 @@ struct map_range {#define NR_RANGE_MR 5#endif -static int save_mr (struct map_range *mr,int nr_range, -unsigned long start_pfn,unsigned long end_pfn, -unsigned long page_size_mask) +static int __meminit save_mr (struct map_range *mr,int nr_range, +unsigned long start_pfn,unsigned long end_pfn, +unsigned long page_size_mask) {if (start_pfn < end_pfn) {if (nr_range >=NR_RANGE_MR )