Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lm32: Readd memblock initialization

  • Loading branch information...
commit 825f1589edfecdc61d07aed99482420f7ec5820d 1 parent 3eb7cd6
@larsclausen larsclausen authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  arch/lm32/kernel/prom.c
View
3  arch/lm32/kernel/prom.c
@@ -22,6 +22,7 @@ int __init early_init_dt_scan_memory_arch(unsigned long node,
void __init early_init_dt_add_memory_arch(u64 base, u64 size)
{
+ memblock_add(base, size);
}
void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
@@ -51,8 +52,10 @@ void __init early_init_devtree(void *params)
of_scan_flat_dt(early_init_dt_scan_chosen, cmd_line);
/* Scan memory nodes */
+ memblock_init();
of_scan_flat_dt(early_init_dt_scan_root, NULL);
of_scan_flat_dt(early_init_dt_scan_memory_arch, NULL);
+ memblock_analyze();
}
void __init device_tree_init(void)
Please sign in to comment.
Something went wrong with that request. Please try again.