diff options
author | Nathan Fontenot | 2010-10-19 19:46:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-10-22 19:16:44 +0200 |
commit | 07681215975e05a1454b0afdeef07deb0db626ee (patch) | |
tree | 87caa0a9fd41f9e6cb323d52cf0f75036ea1ad2a /include/linux/memory.h | |
parent | Driver core: Add mutex for adding/removing memory blocks (diff) | |
download | kernel-qcow2-linux-07681215975e05a1454b0afdeef07deb0db626ee.tar.gz kernel-qcow2-linux-07681215975e05a1454b0afdeef07deb0db626ee.tar.xz kernel-qcow2-linux-07681215975e05a1454b0afdeef07deb0db626ee.zip |
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>
Diffstat (limited to 'include/linux/memory.h')
-rw-r--r-- | include/linux/memory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h index c4f3127dbd48..06c1fa0a5c7b 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -23,6 +23,8 @@ struct memory_block { unsigned long phys_index; unsigned long state; + int section_count; + /* * This serializes all state change requests. It isn't * held during creation because the control files are |