arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations.patch removed from -mm tree
Subsystems (4)
Subject: [merged] arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:14:28 -0800
The patch titled
Subject: arch/arm/mach-omap2/omap_hwmod.c: use memblock apis for early memory allocations
has been removed from the -mm tree. Its filename was
arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Santosh Shilimkar <[email protected]>
Subject: arch/arm/mach-omap2/omap_hwmod.c: use memblock apis for early memory allocations
Switch to memblock interfaces for early memory allocator instead of bootmem allocator. No functional change in beahvior than what it is in current code from bootmem users points of view.
Archs already converted to NO_BOOTMEM now directly use memblock interfaces instead of bootmem wrappers build on top of memblock. And the archs which still uses bootmem, these new apis just fallback to exiting bootmem APIs.
---
arch/arm/mach-omap2/omap_hwmod.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/mach-omap2/omap_hwmod.c renamed from arch/arm/mach-omap2/omap_hwmod.c~arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations +1 -4
@@ -2791,9 +2791,7 @@ static int __init _alloc_links(struct om sz =sizeof (struct omap_hwmod_link ) *LINKS_PER_OCP_IF ; *sl =NULL ; - *ml =alloc_bootmem (sz); - -memset (*ml,0 , sz); + *ml =memblock_virt_alloc (sz,0 ); *sl = (void *)(*ml) +sizeof (struct omap_hwmod_link );
@@ -2912,9 +2910,7 @@ static int __init _alloc_linkspace(strucpr_debug ("omap_hwmod: %s: allocating %d byte linkspace (%d links)\n" , __func__, sz, max_ls); - linkspace =alloc_bootmem (sz);