diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-07-28 00:31:29 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-04 22:56:11 -0400 |
commit | 4734b594c6ca1be796d30c82d93fdf5160f45124 (patch) | |
tree | 72443c76c7d4c0cade456cc21997f383417747de /include/linux | |
parent | 9d3c30f5a17ec35894eadb7171f724643dce19c3 (diff) |
memblock: Remove memblock_type.size and add memblock.memory_size instead
Right now, both the "memory" and "reserved" memblock_type structures have
a "size" member. It represents the calculated memory size in the former
case and is unused in the latter.
This moves it out to the main memblock structure instead
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/memblock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 0fe6dd56a4b4..c9c7b0f344a5 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -27,12 +27,12 @@ struct memblock_region { | |||
27 | 27 | ||
28 | struct memblock_type { | 28 | struct memblock_type { |
29 | unsigned long cnt; | 29 | unsigned long cnt; |
30 | phys_addr_t size; | ||
31 | struct memblock_region regions[MAX_MEMBLOCK_REGIONS+1]; | 30 | struct memblock_region regions[MAX_MEMBLOCK_REGIONS+1]; |
32 | }; | 31 | }; |
33 | 32 | ||
34 | struct memblock { | 33 | struct memblock { |
35 | phys_addr_t current_limit; | 34 | phys_addr_t current_limit; |
35 | phys_addr_t memory_size; /* Updated by memblock_analyze() */ | ||
36 | struct memblock_type memory; | 36 | struct memblock_type memory; |
37 | struct memblock_type reserved; | 37 | struct memblock_type reserved; |
38 | }; | 38 | }; |