diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-01-29 03:24:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-29 04:36:22 -0500 |
commit | ae7f6711d6231c9ba54feb5ba9856c3775e482f8 (patch) | |
tree | 89070c82204b2503348e4fd6c51d25a169375545 /arch/x86/kernel/cpu/perf_event.c | |
parent | 64abebf731df87e6f4ae7d9ffc340bdf0c033e44 (diff) | |
parent | b23ff0e9330e4b11e18af984d50573598e10e7f9 (diff) |
Merge branch 'perf/urgent' into perf/core
Merge reason: We want to queue up a dependent patch. Also update to
later -rc's.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index 518eb3e3957..1846ead0576 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c | |||
@@ -1679,6 +1679,13 @@ intel_pmu_enable_fixed(struct hw_perf_event *hwc, int __idx) | |||
1679 | bits |= 0x2; | 1679 | bits |= 0x2; |
1680 | if (hwc->config & ARCH_PERFMON_EVENTSEL_OS) | 1680 | if (hwc->config & ARCH_PERFMON_EVENTSEL_OS) |
1681 | bits |= 0x1; | 1681 | bits |= 0x1; |
1682 | |||
1683 | /* | ||
1684 | * ANY bit is supported in v3 and up | ||
1685 | */ | ||
1686 | if (x86_pmu.version > 2 && hwc->config & ARCH_PERFMON_EVENTSEL_ANY) | ||
1687 | bits |= 0x4; | ||
1688 | |||
1682 | bits <<= (idx * 4); | 1689 | bits <<= (idx * 4); |
1683 | mask = 0xfULL << (idx * 4); | 1690 | mask = 0xfULL << (idx * 4); |
1684 | 1691 | ||