diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-03-15 07:35:03 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 04:43:47 +0300 |
commit | bc32df00894f0e1dbf583cc3dab210d2969b078a (patch) | |
tree | 1276c26359ac5c4cd231d1d61a4e9649971f4d35 /include/linux/nl802154.h | |
parent | e5d6151115aee73825c1752aff7cd09adfece839 (diff) | |
download | linux-bc32df00894f0e1dbf583cc3dab210d2969b078a.tar.xz |
memory hotplug: allow setting of phys_device
/sys/devices/system/memory/memoryX/phys_device is supposed to contain the
number of the physical device that the corresponding piece of memory
belongs to.
In case a physical device should be replaced or taken offline for whatever
reason it is necessary to set all corresponding memory pieces offline.
The current implementation always sets phys_device to '0' and there is no
way or hook to change that. Seems like there was a plan to implement that
but it wasn't finished for whatever reason.
So add a weak function which architectures can override to actually set
the phys_device from within add_memory_block().
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>
Diffstat (limited to 'include/linux/nl802154.h')
0 files changed, 0 insertions, 0 deletions