Skip to content

Commit

Permalink
x86: Do not reserve brk for DMI if it's not going to be used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thadeu Lima de Souza Cascardo authored and Ingo Molnar committed Feb 25, 2010
1 parent 39c662f commit e808bae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e808bae

Please sign in to comment.