]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Merge commit 'v2.6.27-rc8' into oprofile
authorIngo Molnar <mingo@elte.hu>
Tue, 30 Sep 2008 10:16:26 +0000 (12:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 30 Sep 2008 10:16:26 +0000 (12:16 +0200)
Conflicts:
arch/x86/oprofile/nmi_int.c

Signed-off-by: Ingo Molnar <mingo@elte.hu>
1  2 
arch/x86/oprofile/nmi_int.c
drivers/oprofile/cpu_buffer.c
include/linux/pci_ids.h

index 4108d02c5292a6c67d9c654f364662248a402988,8a5f1614a3d57cde8d7495c1b71f8e8542e99c64..114df508b407b78884a1c98e653a171b76f17d7c
@@@ -31,10 -29,8 +32,10 @@@ static DEFINE_PER_CPU(unsigned long, sa
  
  static int nmi_start(void);
  static void nmi_stop(void);
- static void nmi_cpu_stop(void *dummy);
- static void nmi_cpu_start(void *dummy);
+ static void nmi_cpu_start(void *dummy);
+ static void nmi_cpu_stop(void *dummy);
 +static void nmi_cpu_save_mpx_registers(struct op_msrs *msrs);
 +static void nmi_cpu_restore_mpx_registers(struct op_msrs *msrs);
  
  /* 0 == registered but off, 1 == registered and on */
  static int nmi_enabled = 0;
@@@ -550,8 -490,11 +576,11 @@@ 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 */
 +      __raw_get_cpu_var(switch_index) = 0;
        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