Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147210
b: refs/heads/master
c: 5b75af0
h: refs/heads/master
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Feb 4, 2009
1 parent ddb60ee commit 85715d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15081c61362618a0c81cc8d04e45e7427bc1ed71
refs/heads/master: 5b75af0a02fcf3b8899f38ff6f22164c5d8e2fdd
4 changes: 3 additions & 1 deletion trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ perf_counter_nmi_handler(struct notifier_block *self,
}

static __read_mostly struct notifier_block perf_counter_nmi_notifier = {
.notifier_call = perf_counter_nmi_handler
.notifier_call = perf_counter_nmi_handler,
.next = NULL,
.priority = 1
};

void __init init_hw_perf_counters(void)
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ static int profile_exceptions_notify(struct notifier_block *self,

switch (val) {
case DIE_NMI:
if (model->check_ctrs(args->regs, &per_cpu(cpu_msrs, cpu)))
ret = NOTIFY_STOP;
case DIE_NMI_IPI:
model->check_ctrs(args->regs, &per_cpu(cpu_msrs, cpu));
ret = NOTIFY_STOP;
break;
default:
break;
Expand Down Expand Up @@ -134,7 +135,7 @@ static void nmi_cpu_setup(void *dummy)
static struct notifier_block profile_exceptions_nb = {
.notifier_call = profile_exceptions_notify,
.next = NULL,
.priority = 0
.priority = 2
};

static int nmi_setup(void)
Expand Down

0 comments on commit 85715d0

Please sign in to comment.