x86: Do not reserve brk for DMI if it's not going to be used
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 9 Feb 2010 23:38:45 +0000 (21:38 -0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 25 Feb 2010 09:28:18 +0000 (10:28 +0100)
This will save 64K bytes from memory when loading linux if DMI is
disabled, which is good for embedded systems.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
LKML-Reference: <1265758732-19320-1-git-send-email-cascardo@holoscopio.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/setup.c

index 3499b4f..cb42109 100644 (file)
 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;