diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-06-06 17:59:24 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-06-08 09:21:52 +0900 |
commit | 5450d34a886445e0787c432ff9aaa04b55b0f4c0 (patch) | |
tree | 97b9ca5de0122b9e9fa06c93ad1d35312ef7b668 | |
parent | 58a5eb73678e23f2f2645bc20c3b2bb530cd2ccc (diff) |
kexec: add max_size to memory_ranges
Many implementations statically allocate the memory range array, which
therefore will have a maximum allowable size. Add this information to
the memory_ranges structure, so we don't have to carry it around.
Reviewed-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/kexec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h index c02ac8f..9194f1c 100644 --- a/kexec/kexec.h +++ b/kexec/kexec.h @@ -142,6 +142,7 @@ struct memory_range { struct memory_ranges { unsigned int size; + unsigned int max_size; struct memory_range *ranges; }; |