Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205380
b: refs/heads/master
c: cf454ae
h: refs/heads/master
v: v3
  • Loading branch information
Don Zickus authored and Ingo Molnar committed Feb 14, 2010
1 parent 72d9d7c commit f25d234
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 504d7cf10ee42bb76b9556859f23d4121dee0a77
refs/heads/master: cf454aecb31741a0438ed1201b3dd153c7c7b19a
8 changes: 6 additions & 2 deletions trunk/kernel/nmi_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,12 @@ cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
wd_attr.sample_period = hw_nmi_get_sample_period();
event = perf_event_create_kernel_counter(&wd_attr, hotcpu, -1, wd_overflow);
if (IS_ERR(event)) {
printk(KERN_ERR "nmi watchdog failed to create perf event on %i: %p\n", hotcpu, event);
return NOTIFY_BAD;
wd_attr.type = PERF_TYPE_SOFTWARE;
event = perf_event_create_kernel_counter(&wd_attr, hotcpu, -1, wd_overflow);
if (IS_ERR(event)) {
printk(KERN_ERR "nmi watchdog failed to create perf event on %i: %p\n", hotcpu, event);
return NOTIFY_BAD;
}
}
per_cpu(nmi_watchdog_ev, hotcpu) = event;
perf_event_enable(per_cpu(nmi_watchdog_ev, hotcpu));
Expand Down

0 comments on commit f25d234

Please sign in to comment.