Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191293
b: refs/heads/master
c: 9d0fcba
h: refs/heads/master
i:
  191291: 084466d
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed May 7, 2010
1 parent f21dd60 commit d4176ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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: c1726f343b3bfc2ee037e191907c632a31903021
refs/heads/master: 9d0fcba67e47ff398a6fa86476d4884d472dc98a
9 changes: 2 additions & 7 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static int x86_pmu_hw_config(struct perf_event *event)
if (event->attr.type == PERF_TYPE_RAW)
event->hw.config |= event->attr.config & X86_RAW_EVENT_MASK;

return 0;
return x86_setup_perfctr(event);
}

/*
Expand Down Expand Up @@ -543,12 +543,7 @@ static int __hw_perf_event_init(struct perf_event *event)
event->hw.last_cpu = -1;
event->hw.last_tag = ~0ULL;

/* Processor specifics */
err = x86_pmu.hw_config(event);
if (err)
return err;

return x86_setup_perfctr(event);
return x86_pmu.hw_config(event);
}

static void x86_pmu_disable_all(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/cpu/perf_event_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static int p4_hw_config(struct perf_event *event)
(p4_config_pack_escr(P4_ESCR_MASK_HT) |
p4_config_pack_cccr(P4_CCCR_MASK_HT));

return 0;
return x86_setup_perfctr(event);
}

static inline void p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc)
Expand Down

0 comments on commit d4176ed

Please sign in to comment.