]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: Add section count to memory_block struct
authorNathan Fontenot <nfont@austin.ibm.com>
Tue, 19 Oct 2010 17:46:19 +0000 (12:46 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:16:44 +0000 (10:16 -0700)
commit60235cb0bd8a60d64206974b30b8639095e2d7df
tree87caa0a9fd41f9e6cb323d52cf0f75036ea1ad2a
parentd3743fda28c7f9cdc27a214b85763115cb53ad7e
Driver core: Add section count to memory_block struct

Add a section count property to the memory_block struct to track the number
of memory sections that have been added/removed from a memory block. This
allows us to know when the last memory section of a memory block has been
removed so we can remove the memory block.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Reviewed-by: Robin Holt <holt@sgi.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/memory.c
include/linux/memory.h