Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188248
b: refs/heads/master
c: 3fb2b8d
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 10, 2010
1 parent 3e8b24e commit 8923521
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 32975a4f114be52286f9a5bf6c230dbb8c0e1903
refs/heads/master: 3fb2b8ddcc6a7aa62af6bd2cb939edfd4c460506
11 changes: 5 additions & 6 deletions trunk/arch/x86/kernel/cpu/perf_event_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ static int intel_pmu_handle_irq(struct pt_regs *regs)

cpuc = &__get_cpu_var(cpu_hw_events);

perf_disable();
intel_pmu_disable_all();
intel_pmu_drain_bts_buffer();
status = intel_pmu_get_status();
if (!status) {
perf_enable();
intel_pmu_enable_all();
return 0;
}

Expand All @@ -759,8 +759,7 @@ static int intel_pmu_handle_irq(struct pt_regs *regs)
WARN_ONCE(1, "perfevents: irq loop stuck!\n");
perf_event_print_debug();
intel_pmu_reset();
perf_enable();
return 1;
goto done;
}

inc_irq_stat(apic_perf_irqs);
Expand Down Expand Up @@ -790,8 +789,8 @@ static int intel_pmu_handle_irq(struct pt_regs *regs)
if (status)
goto again;

perf_enable();

done:
intel_pmu_enable_all();
return 1;
}

Expand Down

0 comments on commit 8923521

Please sign in to comment.