Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169488
b: refs/heads/master
c: 7a693d3
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Oct 13, 2009
1 parent cf644a8 commit e5de8b2
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 55ffb7a6bd45d0083ffb132381cb46964a4afe01
refs/heads/master: 7a693d3f0d10f978ebdf3082c41404ab97106567
14 changes: 7 additions & 7 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = {
.enabled = 1,
};

static const struct event_constraint *event_constraint;
static const struct event_constraint *event_constraints;

/*
* Not sure about some of these
Expand Down Expand Up @@ -1442,12 +1442,12 @@ intel_get_event_idx(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc)
const struct event_constraint *event_constraint;
int i, code;

if (!event_constraint)
if (!event_constraints)
goto skip;

code = hwc->config & CORE_EVNTSEL_EVENT_MASK;

for_each_event_constraint(event_constraint, event_constraint) {
for_each_event_constraint(event_constraint, event_constraints) {
if (code == event_constraint->code) {
for_each_bit(i, event_constraint->idxmsk, X86_PMC_IDX_MAX) {
if (!test_and_set_bit(i, cpuc->used_mask))
Expand Down Expand Up @@ -2047,12 +2047,12 @@ static int p6_pmu_init(void)
case 7:
case 8:
case 11: /* Pentium III */
event_constraint = intel_p6_event_constraints;
event_constraints = intel_p6_event_constraints;
break;
case 9:
case 13:
/* Pentium M */
event_constraint = intel_p6_event_constraints;
event_constraints = intel_p6_event_constraints;
break;
default:
pr_cont("unsupported p6 CPU model %d ",
Expand Down Expand Up @@ -2124,14 +2124,14 @@ static int intel_pmu_init(void)
sizeof(hw_cache_event_ids));

pr_cont("Core2 events, ");
event_constraint = intel_core_event_constraints;
event_constraints = intel_core_event_constraints;
break;
default:
case 26:
memcpy(hw_cache_event_ids, nehalem_hw_cache_event_ids,
sizeof(hw_cache_event_ids));

event_constraint = intel_nehalem_event_constraints;
event_constraints = intel_nehalem_event_constraints;
pr_cont("Nehalem/Corei7 events, ");
break;
case 28:
Expand Down

0 comments on commit e5de8b2

Please sign in to comment.