OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c6c53
)
x86: move save_mr() into .meminit.text
author
Jan Beulich
<jbeulich@novell.com>
Thu, 12 Mar 2009 12:40:06 +0000
(12:40 +0000)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 13 Mar 2009 01:37:18 +0000
(
02:37
+0100)
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>
arch/x86/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init.c
b/arch/x86/mm/init.c
index
15219e0
..
fd3da1d
100644
(file)
--- 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)