mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
powerpc/numa: Update numa code use walk_drmem_lmbs
Update code in powerpc/numa.c to use the walk_drmem_lmbs() routine instead of parsing the device tree directly. This is in anticipation of introducing a new ibm,dynamic-memory-v2 property with a different format. This will allow the numa code to use a single initialization routine per-LMB irregardless of the device tree format. Additionally, to support additional routines in numa.c that need to look up LMB information, an late_init routine is added to drmem.c to allocate the array of LMB information. This LMB array will provide per-LMB information to separate the LMB data from the device tree format. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
6c6ea53725
commit
514a9cb331
3 changed files with 157 additions and 174 deletions
|
@ -40,6 +40,10 @@ static inline u32 drmem_lmb_size(void)
|
|||
return drmem_info->lmb_size;
|
||||
}
|
||||
|
||||
u64 drmem_lmb_memory_max(void);
|
||||
void __init walk_drmem_lmbs(struct device_node *dn,
|
||||
void (*func)(struct drmem_lmb *, const __be32 **));
|
||||
|
||||
#ifdef CONFIG_PPC_PSERIES
|
||||
void __init walk_drmem_lmbs_early(unsigned long node,
|
||||
void (*func)(struct drmem_lmb *, const __be32 **));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue