mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
9d3c30f5a1
commit
4734b594c6
3 changed files with 6 additions and 6 deletions
|
@ -27,12 +27,12 @@ struct memblock_region {
|
|||
|
||||
struct memblock_type {
|
||||
unsigned long cnt;
|
||||
phys_addr_t size;
|
||||
struct memblock_region regions[MAX_MEMBLOCK_REGIONS+1];
|
||||
};
|
||||
|
||||
struct memblock {
|
||||
phys_addr_t current_limit;
|
||||
phys_addr_t memory_size; /* Updated by memblock_analyze() */
|
||||
struct memblock_type memory;
|
||||
struct memblock_type reserved;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue