aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2014-04-29 03:39:45 -0400
committerChris Metcalf <cmetcalf@tilera.com>2014-05-02 12:26:32 -0400
commit3af1ea5a2e8ff7ac7ffea3cff1f93914f3cc211d (patch)
tree51405c9884b0381b6822c02eb1fdced7f4d9329d /arch
parentd1db0eea852497762cab43b905b879dfcd3b8987 (diff)
tile: use BOOTMEM_DEFAULT instead of magic number 0 for reserve_bootmem flags
Use macro flag BOOTMEM_DEFAULT instead of magic number 0 for reserve_bootmem. Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/tile/kernel/setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c
index 74c91729a62a..00732474fb55 100644
--- a/arch/tile/kernel/setup.c
+++ b/arch/tile/kernel/setup.c
@@ -691,7 +691,7 @@ static void __init setup_bootmem_allocator(void)
691 /* Reserve any memory excluded by "memmap" arguments. */ 691 /* Reserve any memory excluded by "memmap" arguments. */
692 for (i = 0; i < memmap_nr; ++i) { 692 for (i = 0; i < memmap_nr; ++i) {
693 struct memmap_entry *m = &memmap_map[i]; 693 struct memmap_entry *m = &memmap_map[i];
694 reserve_bootmem(m->addr, m->size, 0); 694 reserve_bootmem(m->addr, m->size, BOOTMEM_DEFAULT);
695 } 695 }
696 696
697#ifdef CONFIG_BLK_DEV_INITRD 697#ifdef CONFIG_BLK_DEV_INITRD
@@ -715,7 +715,8 @@ static void __init setup_bootmem_allocator(void)
715 715
716#ifdef CONFIG_KEXEC 716#ifdef CONFIG_KEXEC
717 if (crashk_res.start != crashk_res.end) 717 if (crashk_res.start != crashk_res.end)
718 reserve_bootmem(crashk_res.start, resource_size(&crashk_res), 0); 718 reserve_bootmem(crashk_res.start, resource_size(&crashk_res),
719 BOOTMEM_DEFAULT);
719#endif 720#endif
720} 721}
721 722