aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-05-03 05:58:46 -0400
committerRobert Richter <robert.richter@amd.com>2010-05-04 05:37:56 -0400
commit216f3d9b4e5121feea4b13fae9d4c83e8d7e1c8a (patch)
treeb1f40d9d27b3b5b2818a257ec7fe1df217c4c34c /arch/x86/oprofile
parent2623a1d55a6260c855e1f6d1895900b50b40a896 (diff)
oprofile/x86: remove CONFIG_SMP macros
CPU notifier register functions also exist if CONFIG_SMP is disabled. This change is part of hotplug code rework and also necessary for later patches. Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r--arch/x86/oprofile/nmi_int.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index 24582040b718..c5df8ee76ee4 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -471,7 +471,6 @@ static int nmi_create_files(struct super_block *sb, struct dentry *root)
471 return 0; 471 return 0;
472} 472}
473 473
474#ifdef CONFIG_SMP
475static int oprofile_cpu_notifier(struct notifier_block *b, unsigned long action, 474static int oprofile_cpu_notifier(struct notifier_block *b, unsigned long action,
476 void *data) 475 void *data)
477{ 476{
@@ -491,7 +490,6 @@ static int oprofile_cpu_notifier(struct notifier_block *b, unsigned long action,
491static struct notifier_block oprofile_cpu_nb = { 490static struct notifier_block oprofile_cpu_nb = {
492 .notifier_call = oprofile_cpu_notifier 491 .notifier_call = oprofile_cpu_notifier
493}; 492};
494#endif
495 493
496#ifdef CONFIG_PM 494#ifdef CONFIG_PM
497 495
@@ -701,9 +699,8 @@ int __init op_nmi_init(struct oprofile_operations *ops)
701 return -ENODEV; 699 return -ENODEV;
702 } 700 }
703 701
704#ifdef CONFIG_SMP
705 register_cpu_notifier(&oprofile_cpu_nb); 702 register_cpu_notifier(&oprofile_cpu_nb);
706#endif 703
707 /* default values, can be overwritten by model */ 704 /* default values, can be overwritten by model */
708 ops->create_files = nmi_create_files; 705 ops->create_files = nmi_create_files;
709 ops->setup = nmi_setup; 706 ops->setup = nmi_setup;
@@ -732,9 +729,7 @@ void op_nmi_exit(void)
732{ 729{
733 if (using_nmi) { 730 if (using_nmi) {
734 exit_sysfs(); 731 exit_sysfs();
735#ifdef CONFIG_SMP
736 unregister_cpu_notifier(&oprofile_cpu_nb); 732 unregister_cpu_notifier(&oprofile_cpu_nb);
737#endif
738 } 733 }
739 if (model->exit) 734 if (model->exit)
740 model->exit(); 735 model->exit();