diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-12-04 09:40:40 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-12-04 09:40:40 -0500 |
commit | 29b08d2bae854f66d3cfd5f57aaf2e7c2c7fce32 (patch) | |
tree | 1a907c124f6a12ec4617a030e412a01be4c81b04 /arch/s390/kernel/smp.c | |
parent | 36a2bd425d9b3ba2a40b0653e08d17702c78558e (diff) |
[S390] pfault code cleanup.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index b549a43ed08f..19090f7d4f51 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -460,8 +460,6 @@ __init smp_count_cpus(void) | |||
460 | */ | 460 | */ |
461 | extern void init_cpu_timer(void); | 461 | extern void init_cpu_timer(void); |
462 | extern void init_cpu_vtimer(void); | 462 | extern void init_cpu_vtimer(void); |
463 | extern int pfault_init(void); | ||
464 | extern void pfault_fini(void); | ||
465 | 463 | ||
466 | int __devinit start_secondary(void *cpuvoid) | 464 | int __devinit start_secondary(void *cpuvoid) |
467 | { | 465 | { |
@@ -473,11 +471,9 @@ int __devinit start_secondary(void *cpuvoid) | |||
473 | #ifdef CONFIG_VIRT_TIMER | 471 | #ifdef CONFIG_VIRT_TIMER |
474 | init_cpu_vtimer(); | 472 | init_cpu_vtimer(); |
475 | #endif | 473 | #endif |
476 | #ifdef CONFIG_PFAULT | ||
477 | /* Enable pfault pseudo page faults on this cpu. */ | 474 | /* Enable pfault pseudo page faults on this cpu. */ |
478 | if (MACHINE_IS_VM) | 475 | pfault_init(); |
479 | pfault_init(); | 476 | |
480 | #endif | ||
481 | /* Mark this cpu as online */ | 477 | /* Mark this cpu as online */ |
482 | cpu_set(smp_processor_id(), cpu_online_map); | 478 | cpu_set(smp_processor_id(), cpu_online_map); |
483 | /* Switch on interrupts */ | 479 | /* Switch on interrupts */ |
@@ -667,11 +663,8 @@ __cpu_disable(void) | |||
667 | } | 663 | } |
668 | cpu_clear(cpu, cpu_online_map); | 664 | cpu_clear(cpu, cpu_online_map); |
669 | 665 | ||
670 | #ifdef CONFIG_PFAULT | ||
671 | /* Disable pfault pseudo page faults on this cpu. */ | 666 | /* Disable pfault pseudo page faults on this cpu. */ |
672 | if (MACHINE_IS_VM) | 667 | pfault_fini(); |
673 | pfault_fini(); | ||
674 | #endif | ||
675 | 668 | ||
676 | memset(&cr_parms.orvals, 0, sizeof(cr_parms.orvals)); | 669 | memset(&cr_parms.orvals, 0, sizeof(cr_parms.orvals)); |
677 | memset(&cr_parms.andvals, 0xff, sizeof(cr_parms.andvals)); | 670 | memset(&cr_parms.andvals, 0xff, sizeof(cr_parms.andvals)); |