]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Merge commit 'v2.6.27-rc5' into tip/oprofile
authorRobert Richter <robert.richter@amd.com>
Wed, 24 Sep 2008 09:25:31 +0000 (11:25 +0200)
committerRobert Richter <robert.richter@amd.com>
Wed, 24 Sep 2008 09:25:31 +0000 (11:25 +0200)
Conflicts:
arch/x86/oprofile/nmi_int.c

1  2 
arch/x86/oprofile/nmi_int.c
drivers/oprofile/cpu_buffer.c
include/linux/pci_ids.h

index 287513a0981907bea5cba717ff793c80a50639fa,0227694f7dab9b156350eaef0e90f79e8ec2ecc4..d988574107463737a44471b4445f92f16dfd1f9f
@@@ -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;
  
  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();
  }
Simple merge
Simple merge