summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 18:00:26 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:24:09 +0900
commitd4b51af1719dba91b80fa48d90ef926e9a9b5019 (patch)
tree5d640eb0dd860a80f681728679cd7b0a49a382a5
parent66d941fccb47f93544366aedd2147bca9496b44e (diff)
arm: add maximum number of memory ranges
Add the maximum number of memory ranges to the list of usable memory ranges, so that we don't have to carry this 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/arch/arm/crashdump-arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c
index 739c906..195b43f 100644
--- a/kexec/arch/arm/crashdump-arm.c
+++ b/kexec/arch/arm/crashdump-arm.c
@@ -46,8 +46,8 @@
*/
static struct memory_range crash_memory_ranges[CRASH_MAX_MEMORY_RANGES];
struct memory_ranges usablemem_rgns = {
- .size = 0,
- .ranges = crash_memory_ranges,
+ .max_size = CRASH_MAX_MEMORY_RANGES,
+ .ranges = crash_memory_ranges,
};
/* memory range reserved for crashkernel */