diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2014-04-14 04:38:05 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-05-20 02:58:43 -0400 |
commit | bf28a5970de3a349ec05cea45ca5272404b6609f (patch) | |
tree | ba85463fb15d90612f5246e015d02643ca02e1f2 /arch/s390/kernel | |
parent | 71c40f7f8fe1d06ed1e1eafdcf56345eb8c17bf2 (diff) |
s390/dump: Remove CONFIG_ZFCPDUMP
Currently there are two s390 kernel dump config options "CONFIG_ZFCPDUMP"
and "CONFIG_CRASH_DUMP". In order to keep things simple and because the
"CONFIG_ZFCPDUMP" option already has a dependency to "CONFIG_CRASH_DUMP"
remove the CONFIG_ZFCPDUMP option.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Reviewed-by: Eric Farman <farman@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 | 6 | ||||
-rw-r--r-- | arch/s390/kernel/smp.c | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 7c5b05fa2194..1e2264b46e4c 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -211,7 +211,7 @@ static void __init conmode_default(void) | |||
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | #ifdef CONFIG_ZFCPDUMP | 214 | #ifdef CONFIG_CRASH_DUMP |
215 | static void __init setup_zfcpdump(void) | 215 | static void __init setup_zfcpdump(void) |
216 | { | 216 | { |
217 | if (ipl_info.type != IPL_TYPE_FCP_DUMP) | 217 | if (ipl_info.type != IPL_TYPE_FCP_DUMP) |
@@ -223,7 +223,7 @@ static void __init setup_zfcpdump(void) | |||
223 | } | 223 | } |
224 | #else | 224 | #else |
225 | static inline void setup_zfcpdump(void) {} | 225 | static inline void setup_zfcpdump(void) {} |
226 | #endif /* CONFIG_ZFCPDUMP */ | 226 | #endif /* CONFIG_CRASH_DUMP */ |
227 | 227 | ||
228 | /* | 228 | /* |
229 | * Reboot, halt and power_off stubs. They just call _machine_restart, | 229 | * Reboot, halt and power_off stubs. They just call _machine_restart, |
@@ -521,7 +521,7 @@ static struct notifier_block kdump_mem_nb = { | |||
521 | */ | 521 | */ |
522 | static void reserve_memory_end(void) | 522 | static void reserve_memory_end(void) |
523 | { | 523 | { |
524 | #ifdef CONFIG_ZFCPDUMP | 524 | #ifdef CONFIG_CRASH_DUMP |
525 | if (ipl_info.type == IPL_TYPE_FCP_DUMP && | 525 | if (ipl_info.type == IPL_TYPE_FCP_DUMP && |
526 | !OLDMEM_BASE && sclp_get_hsa_size()) { | 526 | !OLDMEM_BASE && sclp_get_hsa_size()) { |
527 | memory_end = sclp_get_hsa_size(); | 527 | memory_end = sclp_get_hsa_size(); |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 1f0b474041c4..4b8b7f6284d1 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -521,7 +521,7 @@ void smp_ctl_clear_bit(int cr, int bit) | |||
521 | } | 521 | } |
522 | EXPORT_SYMBOL(smp_ctl_clear_bit); | 522 | EXPORT_SYMBOL(smp_ctl_clear_bit); |
523 | 523 | ||
524 | #if defined(CONFIG_ZFCPDUMP) || defined(CONFIG_CRASH_DUMP) | 524 | #ifdef CONFIG_CRASH_DUMP |
525 | 525 | ||
526 | static void __init smp_get_save_area(int cpu, u16 address) | 526 | static void __init smp_get_save_area(int cpu, u16 address) |
527 | { | 527 | { |
@@ -536,14 +536,12 @@ static void __init smp_get_save_area(int cpu, u16 address) | |||
536 | save_area = dump_save_area_create(cpu); | 536 | save_area = dump_save_area_create(cpu); |
537 | if (!save_area) | 537 | if (!save_area) |
538 | panic("could not allocate memory for save area\n"); | 538 | panic("could not allocate memory for save area\n"); |
539 | #ifdef CONFIG_CRASH_DUMP | ||
540 | if (address == boot_cpu_address) { | 539 | if (address == boot_cpu_address) { |
541 | /* Copy the registers of the boot cpu. */ | 540 | /* Copy the registers of the boot cpu. */ |
542 | copy_oldmem_page(1, (void *) save_area, sizeof(*save_area), | 541 | copy_oldmem_page(1, (void *) save_area, sizeof(*save_area), |
543 | SAVE_AREA_BASE - PAGE_SIZE, 0); | 542 | SAVE_AREA_BASE - PAGE_SIZE, 0); |
544 | return; | 543 | return; |
545 | } | 544 | } |
546 | #endif | ||
547 | /* Get the registers of a non-boot cpu. */ | 545 | /* Get the registers of a non-boot cpu. */ |
548 | __pcpu_sigp_relax(address, SIGP_STOP_AND_STORE_STATUS, 0, NULL); | 546 | __pcpu_sigp_relax(address, SIGP_STOP_AND_STORE_STATUS, 0, NULL); |
549 | memcpy_real(save_area, lc + SAVE_AREA_BASE, sizeof(*save_area)); | 547 | memcpy_real(save_area, lc + SAVE_AREA_BASE, sizeof(*save_area)); |
@@ -560,11 +558,11 @@ int smp_store_status(int cpu) | |||
560 | return 0; | 558 | return 0; |
561 | } | 559 | } |
562 | 560 | ||
563 | #else /* CONFIG_ZFCPDUMP || CONFIG_CRASH_DUMP */ | 561 | #else /* CONFIG_CRASH_DUMP */ |
564 | 562 | ||
565 | static inline void smp_get_save_area(int cpu, u16 address) { } | 563 | static inline void smp_get_save_area(int cpu, u16 address) { } |
566 | 564 | ||
567 | #endif /* CONFIG_ZFCPDUMP || CONFIG_CRASH_DUMP */ | 565 | #endif /* CONFIG_CRASH_DUMP */ |
568 | 566 | ||
569 | void smp_cpu_set_polarization(int cpu, int val) | 567 | void smp_cpu_set_polarization(int cpu, int val) |
570 | { | 568 | { |