diff options
Diffstat (limited to 'arch/s390/kernel/perf_cpum_cf.c')
-rw-r--r-- | arch/s390/kernel/perf_cpum_cf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c index f51214c04858..ea75d011a6fc 100644 --- a/arch/s390/kernel/perf_cpum_cf.c +++ b/arch/s390/kernel/perf_cpum_cf.c | |||
@@ -673,7 +673,8 @@ static int __init cpumf_pmu_init(void) | |||
673 | ctl_clear_bit(0, 48); | 673 | ctl_clear_bit(0, 48); |
674 | 674 | ||
675 | /* register handler for measurement-alert interruptions */ | 675 | /* register handler for measurement-alert interruptions */ |
676 | rc = register_external_interrupt(0x1407, cpumf_measurement_alert); | 676 | rc = register_external_irq(EXT_IRQ_MEASURE_ALERT, |
677 | cpumf_measurement_alert); | ||
677 | if (rc) { | 678 | if (rc) { |
678 | pr_err("Registering for CPU-measurement alerts " | 679 | pr_err("Registering for CPU-measurement alerts " |
679 | "failed with rc=%i\n", rc); | 680 | "failed with rc=%i\n", rc); |
@@ -684,7 +685,8 @@ static int __init cpumf_pmu_init(void) | |||
684 | rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", PERF_TYPE_RAW); | 685 | rc = perf_pmu_register(&cpumf_pmu, "cpum_cf", PERF_TYPE_RAW); |
685 | if (rc) { | 686 | if (rc) { |
686 | pr_err("Registering the cpum_cf PMU failed with rc=%i\n", rc); | 687 | pr_err("Registering the cpum_cf PMU failed with rc=%i\n", rc); |
687 | unregister_external_interrupt(0x1407, cpumf_measurement_alert); | 688 | unregister_external_irq(EXT_IRQ_MEASURE_ALERT, |
689 | cpumf_measurement_alert); | ||
688 | goto out; | 690 | goto out; |
689 | } | 691 | } |
690 | perf_cpu_notifier(cpumf_pmu_notifier); | 692 | perf_cpu_notifier(cpumf_pmu_notifier); |