ARM: 8025/1: Get rid of meminfo
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. Acked-by: Jason Cooper <jason@lakedaemon.net> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Tested-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Этот коммит содержится в:

коммит произвёл
Russell King

родитель
1c8c3cf0b5
Коммит
1c2f87c225
@@ -22,6 +22,7 @@
|
||||
#include <linux/serial_s3c.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/memblock.h>
|
||||
|
||||
#include <asm/mach/arch.h>
|
||||
#include <asm/mach/map.h>
|
||||
@@ -93,13 +94,10 @@ static struct platform_device *smdk2413_devices[] __initdata = {
|
||||
&s3c2412_device_dma,
|
||||
};
|
||||
|
||||
static void __init smdk2413_fixup(struct tag *tags, char **cmdline,
|
||||
struct meminfo *mi)
|
||||
static void __init smdk2413_fixup(struct tag *tags, char **cmdline)
|
||||
{
|
||||
if (tags != phys_to_virt(S3C2410_SDRAM_PA + 0x100)) {
|
||||
mi->nr_banks=1;
|
||||
mi->bank[0].start = 0x30000000;
|
||||
mi->bank[0].size = SZ_64M;
|
||||
memblock_add(0x30000000, SZ_64M);
|
||||
}
|
||||
}
|
||||
|
||||
|
Ссылка в новой задаче
Block a user