diff options
Diffstat (limited to 'arch/ia64/kernel/perfmon.c')
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 410d4804fa6e..18c51c37a9a3 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -6718,6 +6718,7 @@ __initcall(pfm_init); | |||
6718 | void | 6718 | void |
6719 | pfm_init_percpu (void) | 6719 | pfm_init_percpu (void) |
6720 | { | 6720 | { |
6721 | static int first_time=1; | ||
6721 | /* | 6722 | /* |
6722 | * make sure no measurement is active | 6723 | * make sure no measurement is active |
6723 | * (may inherit programmed PMCs from EFI). | 6724 | * (may inherit programmed PMCs from EFI). |
@@ -6730,8 +6731,10 @@ pfm_init_percpu (void) | |||
6730 | */ | 6731 | */ |
6731 | pfm_unfreeze_pmu(); | 6732 | pfm_unfreeze_pmu(); |
6732 | 6733 | ||
6733 | if (smp_processor_id() == 0) | 6734 | if (first_time) { |
6734 | register_percpu_irq(IA64_PERFMON_VECTOR, &perfmon_irqaction); | 6735 | register_percpu_irq(IA64_PERFMON_VECTOR, &perfmon_irqaction); |
6736 | first_time=0; | ||
6737 | } | ||
6735 | 6738 | ||
6736 | ia64_setreg(_IA64_REG_CR_PMV, IA64_PERFMON_VECTOR); | 6739 | ia64_setreg(_IA64_REG_CR_PMV, IA64_PERFMON_VECTOR); |
6737 | ia64_srlz_d(); | 6740 | ia64_srlz_d(); |