diff options
author | Robert Richter <robert.richter@amd.com> | 2009-05-25 13:31:44 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-06-11 13:42:14 -0400 |
commit | ef8828ddf828174785421af67c281144d4b8e796 (patch) | |
tree | 28aef872bb6d3fd4455b508b73f81639a4fca1aa /arch/x86/oprofile/nmi_int.c | |
parent | 9c59354b48ce9cf28048b02fea73dd0236f876ea (diff) |
x86/oprofile: pass the model to setup_ctrs() functions
In follow-on patches the setup_ctrs() functions will need data that
describes the model. This patch extends the function argument list to
pass a pointer of the model to these function.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/nmi_int.c')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index ae0ab03959b4..c31f87bbf436 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -125,7 +125,7 @@ static void nmi_cpu_setup(void *dummy) | |||
125 | int cpu = smp_processor_id(); | 125 | int cpu = smp_processor_id(); |
126 | struct op_msrs *msrs = &per_cpu(cpu_msrs, cpu); | 126 | struct op_msrs *msrs = &per_cpu(cpu_msrs, cpu); |
127 | spin_lock(&oprofilefs_lock); | 127 | spin_lock(&oprofilefs_lock); |
128 | model->setup_ctrs(msrs); | 128 | model->setup_ctrs(model, msrs); |
129 | spin_unlock(&oprofilefs_lock); | 129 | spin_unlock(&oprofilefs_lock); |
130 | per_cpu(saved_lvtpc, cpu) = apic_read(APIC_LVTPC); | 130 | per_cpu(saved_lvtpc, cpu) = apic_read(APIC_LVTPC); |
131 | apic_write(APIC_LVTPC, APIC_DM_NMI); | 131 | apic_write(APIC_LVTPC, APIC_DM_NMI); |