Thread (13 messages) 13 messages, 8 authors, 2014-02-11

[PATCHv2 2/2] arm: Get rid of meminfo

From: Grant Likely <hidden>
Date: 2014-02-10 21:58:43
Also in: linux-arm-msm, lkml

On Wed, Feb 5, 2014 at 12:02 AM, Laura Abbott [off-list ref] wrote:
quoted hunk ↗ jump to hunk
memblock is now fully integrated into the kernel and is the prefered
method for tracking memory. Rather than reinvent the wheel with
meminfo, migrate to using memblock directly instead of meminfo as
an intermediate.

Signed-off-by: Laura Abbott <redacted>
---
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index b0df976..b6de661 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -625,15 +625,8 @@ void __init dump_machine_table(void)

 int __init arm_add_memory(u64 start, u64 size)
 {
-       struct membank *bank = &meminfo.bank[meminfo.nr_banks];
        u64 aligned_start;
With the changes to this function, I think you can outright remove
early_init_dt_add_memory_arch() from arch/arm/kernel/devtree.c. The
default implementation (__weak) in drivers/of/fdt.c uses memblock
directly.

g.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help