From: Robert Richter Date: Wed, 24 Sep 2008 09:25:31 +0000 (+0200) Subject: Merge commit 'v2.6.27-rc5' into tip/oprofile X-Git-Tag: firefly_0821_release~17143^2~15^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f78e80209cf143be49f268c340431ae9fa3abb74;p=firefly-linux-kernel-4.4.55.git Merge commit 'v2.6.27-rc5' into tip/oprofile Conflicts: arch/x86/oprofile/nmi_int.c --- f78e80209cf143be49f268c340431ae9fa3abb74 diff --cc arch/x86/oprofile/nmi_int.c index 287513a09819,0227694f7dab..d98857410746 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c @@@ -468,7 -488,11 +494,10 @@@ int __init op_nmi_init(struct oprofile_ return -ENODEV; } - init_sysfs(); + #ifdef CONFIG_SMP + register_cpu_notifier(&oprofile_cpu_nb); + #endif - using_nmi = 1; + /* default values, can be overwritten by model */ ops->create_files = nmi_create_files; ops->setup = nmi_setup; ops->shutdown = nmi_shutdown; @@@ -489,8 -505,10 +518,12 @@@ void op_nmi_exit(void) { - if (using_nmi) + if (using_nmi) { exit_sysfs(); + #ifdef CONFIG_SMP + unregister_cpu_notifier(&oprofile_cpu_nb); + #endif + } + if (model->exit) + model->exit(); }