memory hotplug/s390: set phys_device
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 15 Mar 2010 04:35:05 +0000 (00:35 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Mar 2010 01:43:47 +0000 (18:43 -0700)
commit57b552ba0b2faf7cce66d476ef8ce7f6210c62fd
treee9ce4977fdf2259bd5c860b3358261f8f3522c5f
parentbc32df00894f0e1dbf583cc3dab210d2969b078a
memory hotplug/s390: set phys_device

Implement arch specific arch_get_memory_phys_device function and
initialize phys_device for each memory section.  That way we finally can
tell which piece of memory belongs to which physical device.

This makes s390's /sys/devices/system/memory/memoryX/phys_device display
the correct thing?

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/s390/char/sclp_cmd.c