diff options
Diffstat (limited to 'arch/tile/kernel/setup.c')
-rw-r--r-- | arch/tile/kernel/setup.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 74c91729a62a..112ababa9e55 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
@@ -228,13 +228,10 @@ early_param("isolnodes", setup_isolnodes); | |||
228 | #if defined(CONFIG_PCI) && !defined(__tilegx__) | 228 | #if defined(CONFIG_PCI) && !defined(__tilegx__) |
229 | static int __init setup_pci_reserve(char* str) | 229 | static int __init setup_pci_reserve(char* str) |
230 | { | 230 | { |
231 | unsigned long mb; | 231 | if (str == NULL || kstrtouint(str, 0, &pci_reserve_mb) != 0 || |
232 | 232 | pci_reserve_mb > 3 * 1024) | |
233 | if (str == NULL || strict_strtoul(str, 0, &mb) != 0 || | ||
234 | mb > 3 * 1024) | ||
235 | return -EINVAL; | 233 | return -EINVAL; |
236 | 234 | ||
237 | pci_reserve_mb = mb; | ||
238 | pr_info("Reserving %dMB for PCIE root complex mappings\n", | 235 | pr_info("Reserving %dMB for PCIE root complex mappings\n", |
239 | pci_reserve_mb); | 236 | pci_reserve_mb); |
240 | return 0; | 237 | return 0; |
@@ -691,7 +688,7 @@ static void __init setup_bootmem_allocator(void) | |||
691 | /* Reserve any memory excluded by "memmap" arguments. */ | 688 | /* Reserve any memory excluded by "memmap" arguments. */ |
692 | for (i = 0; i < memmap_nr; ++i) { | 689 | for (i = 0; i < memmap_nr; ++i) { |
693 | struct memmap_entry *m = &memmap_map[i]; | 690 | struct memmap_entry *m = &memmap_map[i]; |
694 | reserve_bootmem(m->addr, m->size, 0); | 691 | reserve_bootmem(m->addr, m->size, BOOTMEM_DEFAULT); |
695 | } | 692 | } |
696 | 693 | ||
697 | #ifdef CONFIG_BLK_DEV_INITRD | 694 | #ifdef CONFIG_BLK_DEV_INITRD |
@@ -715,7 +712,8 @@ static void __init setup_bootmem_allocator(void) | |||
715 | 712 | ||
716 | #ifdef CONFIG_KEXEC | 713 | #ifdef CONFIG_KEXEC |
717 | if (crashk_res.start != crashk_res.end) | 714 | if (crashk_res.start != crashk_res.end) |
718 | reserve_bootmem(crashk_res.start, resource_size(&crashk_res), 0); | 715 | reserve_bootmem(crashk_res.start, resource_size(&crashk_res), |
716 | BOOTMEM_DEFAULT); | ||
719 | #endif | 717 | #endif |
720 | } | 718 | } |
721 | 719 | ||