Skip to contentSkip to conversation

x86: do not reserve brk for DMI if it's not going to be used

PATCH In review Thadeu Lima de Souza Cascardo 1 participant 3 messages Feb 9, 2010 – Feb 25, 2010 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: do not reserve brk for DMI if it's not going to be used

This will save 65536 bytes from memory when loading linux, which is good for embedded systems.

---
 arch/x86/kernel/setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/setup.c +2 -0
index 3499b4f..cb42109 100644
@@ -121,7 +121,9 @@
 unsigned long max_low_pfn_mapped;
 unsigned long max_pfn_mapped;
 
+#ifdef CONFIG_DMI
 RESERVE_BRK(dmi_alloc, 65536);
+#endif
 
 unsigned int boot_cpu_id __read_mostly;
 
Signature · 1 line
1.6.6.1
#1 lore raw

[tip:x86/mm] x86: Do not reserve brk for DMI if it's not going to be used

Commit-ID:  3b24826c2055bd400b321ed53f82e240b40dceb1
Gitweb:     http://git.kernel.org/tip/3b24826c2055bd400b321ed53f82e240b40dceb1
Author:     Thadeu Lima de Souza Cascardo <[email protected]>
AuthorDate: Tue, 9 Feb 2010 21:38:45 -0200
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Wed, 17 Feb 2010 10:11:24 -0800

x86: Do not reserve brk for DMI if it's not going to be used

This will save 64K bytes from memory when loading linux if DMI is disabled, which is good for embedded systems.

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/setup.c +2 -0
index 3499b4f..cb42109 100644
@@ -121,7 +121,9 @@
 unsigned long max_low_pfn_mapped;
 unsigned long max_pfn_mapped;
 
+#ifdef CONFIG_DMI
 RESERVE_BRK(dmi_alloc, 65536);
+#endif
 
 unsigned int boot_cpu_id __read_mostly;
 
#2 lore raw

[tip:x86/mm] x86: Do not reserve brk for DMI if it's not going to be used

In reply to Thadeu Lima de Souza Cascardo
Commit-ID:  e808bae2407a087bfd40200a27587898e5a9909d
Gitweb:     http://git.kernel.org/tip/e808bae2407a087bfd40200a27587898e5a9909d
Author:     Thadeu Lima de Souza Cascardo <[email protected]>
AuthorDate: Tue, 9 Feb 2010 21:38:45 -0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 25 Feb 2010 10:28:18 +0100

x86: Do not reserve brk for DMI if it's not going to be used

This will save 64K bytes from memory when loading linux if DMI is disabled, which is good for embedded systems.

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/setup.c +2 -0
index 3499b4f..cb42109 100644
@@ -121,7 +121,9 @@
 unsigned long max_low_pfn_mapped;
 unsigned long max_pfn_mapped;
 
+#ifdef CONFIG_DMI
 RESERVE_BRK(dmi_alloc, 65536);
+#endif
 
 unsigned int boot_cpu_id __read_mostly;