summaryrefslogtreecommitdiff
path: root/kexec/arch/i386/crashdump-x86.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2015-12-01 15:21:02 +0900
committerSimon Horman <horms@verge.net.au>2015-12-01 15:21:02 +0900
commiteff306e8914cfed05f4c29ea502cb46b1408f0ce (patch)
treecfa7334214b054bf09f5ccb9c84df47a60b890e6 /kexec/arch/i386/crashdump-x86.c
parent8a1aa35a1077b42bc2a2afb05d24b637e1edf2a1 (diff)
Revert "crashdump/x86: Add option to get crash kernel region size"
This reverts commit 8a1aa35a1077b42bc2a2afb05d24b637e1edf2a1.
Diffstat (limited to 'kexec/arch/i386/crashdump-x86.c')
-rw-r--r--kexec/arch/i386/crashdump-x86.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 4b31112..bbc0f35 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -1056,7 +1056,7 @@ static int crashkernel_mem_callback(void *UNUSED(data), int nr,
return 0;
}
-static int get_crashkernel_region(void)
+int is_crashkernel_mem_reserved(void)
{
int ret;
@@ -1079,19 +1079,3 @@ static int get_crashkernel_region(void)
return !!crash_reserved_mem_nr;
}
-
-int is_crashkernel_mem_reserved(void)
-{
- return get_crashkernel_region();
-}
-
-void print_crashkernel_region_size(void)
-{
- uint64_t end, start;
-
- if (get_crashkernel_region()) {
- get_crash_kernel_load_range(&start, &end);
- printf("%lu\n", end - start + 1);
- } else
- printf("0\n");
-}