From: Heiko Carstens Date: Thu, 2 May 2013 07:15:58 +0000 (+0200) Subject: s390/memory hotplug: provide memory_block_size_bytes() function X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~30^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5d709bb5fb758281b5a5dbda50823bb68b3a066;p=pandora-kernel.git s390/memory hotplug: provide memory_block_size_bytes() function Commit 0c2c99b1b "memory hotplug: Allow memory blocks to span multiple memory sections" introduced a weak memory_block_size_bytes() function which can be used to set the size of a memory block as seen in sysfs. Provide an s390 specific override which makes sure that each memory block has at least a size of 256MB or the increment size of of a memory increment, whatever is larger. This way we can make sure that the number of memory sysfs objects doesn't explode for very large memory configurations. Reported-by: Gerald Schaefer Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed