Skip to contentSkip to conversation

mm-memblock-drop-warn-and-use-smp_cache_bytes-as-a-default-alignment.patch removed from -mm tree

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

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-memblock-drop-warn-and-use-smp_cache_bytes-as-a-default-alignment.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:13:52 -0800

The patch titled
Subject: mm/memblock: drop WARN and use SMP_CACHE_BYTES as a default alignment
has been removed from the -mm tree. Its filename was
mm-memblock-drop-warn-and-use-smp_cache_bytes-as-a-default-alignment.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Grygorii Strashko <[email protected]>
Subject: mm/memblock: drop WARN and use SMP_CACHE_BYTES as a default alignment

Don't produce warning and interpret 0 as "default align" equal to SMP_CACHE_BYTES in case if caller of memblock_alloc_base_nid() doesn't specify alignment for the block (align == 0).

This is done in preparation of introducing common memblock alloc interface to make code behavior consistent. More details are in below thread :

	https://lkml.org/lkml/2013/10/13/117.
Cc Yinghai Lu <[email protected]>
Cc Tejun Heo <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Greg Kroah-Hartman <[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 Tony Lindgren <[email protected]>

---

 mm/memblock.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/memblock.c renamed from mm/memblock.c~mm-memblock-drop-warn-and-use-smp_cache_bytes-as-a-default-alignment +2 -2
diff -puN mm/memblock.c~mm-memblock-drop-warn-and-use-smp_cache_bytes-as-a-default-alignment mm/memblock.c
@@ -969,8 +969,8 @@ static phys_addr_t __init memblock_alloc
 {
 	phys_addr_t found;
 
-	if (WARN_ON(!align))
-		align = __alignof__(long long);
+	if (!align)
+		align = SMP_CACHE_BYTES;
 
 	/* align @size to avoid excessive fragmentation on reserved array */
 	size = round_up(size, align);

_

Patches currently in -mm which might be from [email protected] are

origin.patch
mm-nobootmem-free_all_bootmem-again.patch
rtc-rtc-twl-use-devm_-functions.patch
rtc-rtc-vr41xx-use-devm_-functions.patch
linux-next.patch