[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140207020949.GQ1706@sonymobile.com>
Date: Thu, 6 Feb 2014 18:09:50 -0800
From: Courtney Cavin <courtney.cavin@...ymobile.com>
To: Laura Abbott <lauraa@...eaurora.org>
CC: Russell King <linux@....linux.org.uk>,
David Brown <davidb@...eaurora.org>,
Daniel Walker <dwalker@...o99.com>,
Jason Cooper <jason@...edaemon.net>,
Andrew Lunn <andrew@...n.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Eric Miao <eric.y.miao@...il.com>,
Haojian Zhuang <haojian.zhuang@...il.com>,
Ben Dooks <ben-linux@...ff.org>,
Kukjin Kim <kgene.kim@...sung.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
Leif Lindholm <leif.lindholm@...aro.org>,
Grygorii Strashko <grygorii.strashko@...com>,
Catalin Marinas <catalin.marinas@....com>,
Rob Herring <robherring2@...il.com>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
Will Deacon <will.deacon@....com>,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Santosh Shilimkar <santosh.shilimkar@...com>
Subject: Re: [PATCHv2 2/2] arm: Get rid of meminfo
On Wed, Feb 05, 2014 at 01:02:31AM +0100, Laura Abbott wrote:
> 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 <lauraa@...eaurora.org>
[...]
> diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
> index 0b11c1a..51d814e 100644
> --- a/arch/arm/mach-pxa/spitz.c
> +++ b/arch/arm/mach-pxa/spitz.c
> @@ -32,6 +32,7 @@
> #include <linux/io.h>
> #include <linux/module.h>
> #include <linux/reboot.h>
> +#include <linux/memblock.h>
>
> #include <asm/setup.h>
> #include <asm/mach-types.h>
> @@ -971,13 +972,9 @@ static void __init spitz_init(void)
> spitz_i2c_init();
> }
>
> -static void __init spitz_fixup(struct tag *tags, char **cmdline,
> - struct meminfo *mi)
> +static void __init spitz_fixup(struct tag *tags, char **cmdline)
> {
> - sharpsl_save_param();
> - mi->nr_banks = 1;
> - mi->bank[0].start = 0xa0000000;
> - mi->bank[0].size = (64*1024*1024);
> + memblock_addr(0xa0000000, SZ_64M);
memblock_add() ?
-Courtney
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists