diff options
Diffstat (limited to 'arch/x86/oprofile/nmi_int.c')
| -rw-r--r-- | arch/x86/oprofile/nmi_int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 2c505ee71014..18929a869dd3 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
| @@ -322,10 +322,10 @@ static void nmi_cpu_setup(void *dummy) | |||
| 322 | int cpu = smp_processor_id(); | 322 | int cpu = smp_processor_id(); |
| 323 | struct op_msrs *msrs = &per_cpu(cpu_msrs, cpu); | 323 | struct op_msrs *msrs = &per_cpu(cpu_msrs, cpu); |
| 324 | nmi_cpu_save_registers(msrs); | 324 | nmi_cpu_save_registers(msrs); |
| 325 | spin_lock(&oprofilefs_lock); | 325 | raw_spin_lock(&oprofilefs_lock); |
| 326 | model->setup_ctrs(model, msrs); | 326 | model->setup_ctrs(model, msrs); |
| 327 | nmi_cpu_setup_mux(cpu, msrs); | 327 | nmi_cpu_setup_mux(cpu, msrs); |
| 328 | spin_unlock(&oprofilefs_lock); | 328 | raw_spin_unlock(&oprofilefs_lock); |
| 329 | per_cpu(saved_lvtpc, cpu) = apic_read(APIC_LVTPC); | 329 | per_cpu(saved_lvtpc, cpu) = apic_read(APIC_LVTPC); |
| 330 | apic_write(APIC_LVTPC, APIC_DM_NMI); | 330 | apic_write(APIC_LVTPC, APIC_DM_NMI); |
| 331 | } | 331 | } |
