提交 3af1ea5a 编写于 作者: W Wang Sheng-Hui 提交者: Chris Metcalf

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: NWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
上级 d1db0eea
...@@ -691,7 +691,7 @@ static void __init setup_bootmem_allocator(void) ...@@ -691,7 +691,7 @@ static void __init setup_bootmem_allocator(void)
/* Reserve any memory excluded by "memmap" arguments. */ /* Reserve any memory excluded by "memmap" arguments. */
for (i = 0; i < memmap_nr; ++i) { for (i = 0; i < memmap_nr; ++i) {
struct memmap_entry *m = &memmap_map[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 #ifdef CONFIG_BLK_DEV_INITRD
...@@ -715,7 +715,8 @@ static void __init setup_bootmem_allocator(void) ...@@ -715,7 +715,8 @@ static void __init setup_bootmem_allocator(void)
#ifdef CONFIG_KEXEC #ifdef CONFIG_KEXEC
if (crashk_res.start != crashk_res.end) 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 #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册