diff options
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index d9885741074..57f6c908808 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -296,10 +296,12 @@ static void nmi_cpu_shutdown(void *dummy) | |||
296 | 296 | ||
297 | static void nmi_shutdown(void) | 297 | static void nmi_shutdown(void) |
298 | { | 298 | { |
299 | struct op_msrs *msrs = &get_cpu_var(cpu_msrs); | 299 | struct op_msrs *msrs; |
300 | |||
300 | nmi_enabled = 0; | 301 | nmi_enabled = 0; |
301 | on_each_cpu(nmi_cpu_shutdown, NULL, 1); | 302 | on_each_cpu(nmi_cpu_shutdown, NULL, 1); |
302 | unregister_die_notifier(&profile_exceptions_nb); | 303 | unregister_die_notifier(&profile_exceptions_nb); |
304 | msrs = &get_cpu_var(cpu_msrs); | ||
303 | model->shutdown(msrs); | 305 | model->shutdown(msrs); |
304 | free_msrs(); | 306 | free_msrs(); |
305 | put_cpu_var(cpu_msrs); | 307 | put_cpu_var(cpu_msrs); |