diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2011-12-01 13:32:14 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2011-12-01 13:32:17 +0100 |
commit | 5f894cbb6890d317699aa622b4dc9d73d009cd22 (patch) | |
tree | 22dc553b369ca8706b80473aa3b971632c680fdd /arch/s390/kernel | |
parent | 11d814a20166461358e1cefaf6bcd425698b8460 (diff) | |
download | op-kernel-dev-5f894cbb6890d317699aa622b4dc9d73d009cd22.zip op-kernel-dev-5f894cbb6890d317699aa622b4dc9d73d009cd22.tar.gz |
[S390] kdump: Replace is_kdump_kernel() with OLDMEM_BASE check
In order to have the same behavior for kdump based stand-alone dump
as for the kexec method, the is_kdump_kernel() check (only true for
the kexec method) has to be replaced by the OLDMEM_BASE check (true
for both methods).
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index e58a462..e54c4ff 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -579,7 +579,7 @@ static unsigned long __init find_crash_base(unsigned long crash_size, *msg = "first memory chunk must be at least crashkernel size"; return 0; } - if (is_kdump_kernel() && (crash_size == OLDMEM_SIZE)) + if (OLDMEM_BASE && crash_size == OLDMEM_SIZE) return OLDMEM_BASE; for (i = MEMORY_CHUNKS - 1; i >= 0; i--) { |