Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147447
b: refs/heads/master
c: 5bb9efe
h: refs/heads/master
i:
  147445: 0e16560
  147443: df64c3e
  147439: 335f59e
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 13, 2009
1 parent fe12851 commit df72c8e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: e758a33d6fc5b9d6a3ae489863d04fcecad8120b
refs/heads/master: 5bb9efe33ea4001a17ab98186a40a134a3061d67
5 changes: 3 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,13 @@ void perf_counter_print_debug(void)
{
u64 ctrl, status, overflow, pmc_ctrl, pmc_count, prev_left, fixed;
struct cpu_hw_counters *cpuc;
unsigned long flags;
int cpu, idx;

if (!x86_pmu.num_counters)
return;

local_irq_disable();
local_irq_save(flags);

cpu = smp_processor_id();
cpuc = &per_cpu(cpu_hw_counters, cpu);
Expand Down Expand Up @@ -664,7 +665,7 @@ void perf_counter_print_debug(void)
pr_info("CPU#%d: fixed-PMC%d count: %016llx\n",
cpu, idx, pmc_count);
}
local_irq_enable();
local_irq_restore(flags);
}

static void x86_pmu_disable(struct perf_counter *counter)
Expand Down

0 comments on commit df72c8e

Please sign in to comment.