Skip to content

Commit

Permalink
tile: use BOOTMEM_DEFAULT instead of magic number 0 for reserve_bootm…
Browse files Browse the repository at this point in the history
…em 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>
  • Loading branch information
Wang Sheng-Hui authored and Chris Metcalf committed May 2, 2014
1 parent d1db0ee commit 3af1ea5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/tile/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static void __init setup_bootmem_allocator(void)
/* Reserve any memory excluded by "memmap" arguments. */
for (i = 0; i < memmap_nr; ++i) {
struct memmap_entry *m = &memmap_map[i];
reserve_bootmem(m->addr, m->size, 0);
reserve_bootmem(m->addr, m->size, BOOTMEM_DEFAULT);
}

#ifdef CONFIG_BLK_DEV_INITRD
Expand All @@ -715,7 +715,8 @@ static void __init setup_bootmem_allocator(void)

#ifdef CONFIG_KEXEC
if (crashk_res.start != crashk_res.end)
reserve_bootmem(crashk_res.start, resource_size(&crashk_res), 0);
reserve_bootmem(crashk_res.start, resource_size(&crashk_res),
BOOTMEM_DEFAULT);
#endif
}

Expand Down

0 comments on commit 3af1ea5

Please sign in to comment.