diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_counter.c | 4 | ||||
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index 46c436cdd73..8bb213323fe 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c | |||
@@ -643,7 +643,9 @@ perf_counter_nmi_handler(struct notifier_block *self, | |||
643 | } | 643 | } |
644 | 644 | ||
645 | static __read_mostly struct notifier_block perf_counter_nmi_notifier = { | 645 | static __read_mostly struct notifier_block perf_counter_nmi_notifier = { |
646 | .notifier_call = perf_counter_nmi_handler | 646 | .notifier_call = perf_counter_nmi_handler, |
647 | .next = NULL, | ||
648 | .priority = 1 | ||
647 | }; | 649 | }; |
648 | 650 | ||
649 | void __init init_hw_perf_counters(void) | 651 | void __init init_hw_perf_counters(void) |
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 202864ad49a..c638685136e 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -40,8 +40,9 @@ static int profile_exceptions_notify(struct notifier_block *self, | |||
40 | 40 | ||
41 | switch (val) { | 41 | switch (val) { |
42 | case DIE_NMI: | 42 | case DIE_NMI: |
43 | if (model->check_ctrs(args->regs, &per_cpu(cpu_msrs, cpu))) | 43 | case DIE_NMI_IPI: |
44 | ret = NOTIFY_STOP; | 44 | model->check_ctrs(args->regs, &per_cpu(cpu_msrs, cpu)); |
45 | ret = NOTIFY_STOP; | ||
45 | break; | 46 | break; |
46 | default: | 47 | default: |
47 | break; | 48 | break; |
@@ -134,7 +135,7 @@ static void nmi_cpu_setup(void *dummy) | |||
134 | static struct notifier_block profile_exceptions_nb = { | 135 | static struct notifier_block profile_exceptions_nb = { |
135 | .notifier_call = profile_exceptions_notify, | 136 | .notifier_call = profile_exceptions_notify, |
136 | .next = NULL, | 137 | .next = NULL, |
137 | .priority = 0 | 138 | .priority = 2 |
138 | }; | 139 | }; |
139 | 140 | ||
140 | static int nmi_setup(void) | 141 | static int nmi_setup(void) |