Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147131
b: refs/heads/master
c: 87b9cf4
h: refs/heads/master
i:
  147129: 4afd46f
  147127: 05ff848
v: v3
  • Loading branch information
Ingo Molnar committed Dec 8, 2008
1 parent e45e37d commit 8278748
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 241771ef016b5c0c83cd7a4372a74321c973c1e6
refs/heads/master: 87b9cf4623ad4e5fc009e48c020593dffd5d3793
12 changes: 5 additions & 7 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,18 +383,16 @@ static void __smp_perf_counter_interrupt(struct pt_regs *regs, int nmi)
struct cpu_hw_counters *cpuc;
u64 ack, status;

rdmsrl(MSR_CORE_PERF_GLOBAL_STATUS, status);
if (!status) {
ack_APIC_irq();
return;
}

/* Disable counters globally */
wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 0, 0);
ack_APIC_irq();

cpuc = &per_cpu(cpu_hw_counters, cpu);

rdmsrl(MSR_CORE_PERF_GLOBAL_STATUS, status);
if (!status)
goto out;

again:
ack = status;
for_each_bit(bit, (unsigned long *) &status, nr_hw_counters) {
Expand Down Expand Up @@ -440,7 +438,7 @@ static void __smp_perf_counter_interrupt(struct pt_regs *regs, int nmi)
rdmsrl(MSR_CORE_PERF_GLOBAL_STATUS, status);
if (status)
goto again;

out:
/*
* Do not reenable when global enable is off:
*/
Expand Down

0 comments on commit 8278748

Please sign in to comment.