Skip to contentSkip to conversation

arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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.

Cc "Rafael J. Wysocki" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Grygorii Strashko <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Russell King <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Yinghai Lu <[email protected]>

---

 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
diff -puN arch/arm/mach-omap2/omap_hwmod.c~arch-arm-mach-omap2-omap_hwmodc-use-memblock-apis-for-early-memory-allocations arch/arm/mach-omap2/omap_hwmod.c
@@ -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(struc
 	pr_debug("omap_hwmod: %s: allocating %d byte linkspace (%d links)\n",
 		 __func__, sz, max_ls);
 
-	linkspace = alloc_bootmem(sz);