Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191305
b: refs/heads/master
c: 137351e
h: refs/heads/master
i:
  191303: 22d8c2f
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed May 8, 2010
1 parent 9a08fab commit 3d2f07e
Show file tree
Hide file tree
Showing 2 changed files with 7 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: de902d967feb96f2dfddfbe9dbd69dc22fd5ebcb
refs/heads/master: 137351e0feeb9f25d99488ee1afc1c79f5499a9a
8 changes: 6 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_event_p4.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ static u64 p4_pmu_event_map(int hw_event)

static int p4_hw_config(struct perf_event *event)
{
int cpu = raw_smp_processor_id();
int cpu = get_cpu();
int rc = 0;
u32 escr, cccr;

/*
Expand Down Expand Up @@ -454,7 +455,10 @@ static int p4_hw_config(struct perf_event *event)
p4_config_pack_cccr(P4_CCCR_MASK_HT));
}

return x86_setup_perfctr(event);
rc = x86_setup_perfctr(event);
put_cpu();

return rc;
}

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

0 comments on commit 3d2f07e

Please sign in to comment.