[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-dc9dd5cc854cde110d2421f3a11fec7597e059c1@git.kernel.org>
Date: Fri, 13 Mar 2009 02:33:55 GMT
From: Jan Beulich <jbeulich@...ell.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
jbeulich@...ell.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:x86/mm] x86: move save_mr() into .meminit.text
Commit-ID: dc9dd5cc854cde110d2421f3a11fec7597e059c1
Gitweb: http://git.kernel.org/tip/dc9dd5cc854cde110d2421f3a11fec7597e059c1
Author: Jan Beulich <jbeulich@...ell.com>
AuthorDate: Thu, 12 Mar 2009 12:40:06 +0000
Commit: Ingo Molnar <mingo@...e.hu>
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 <jbeulich@...ell.com>
LKML-Reference: <49B910B6.76E4.0078.0@...ell.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
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 15219e0..fd3da1d 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists