]> git.karo-electronics.de Git - mv-sheeva.git/commit
perf, x86: implement ARCH_PERFMON_EVENTSEL bit masks
authorRobert Richter <robert.richter@amd.com>
Tue, 30 Mar 2010 09:28:21 +0000 (11:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 2 Apr 2010 17:52:03 +0000 (19:52 +0200)
commita098f4484bc7dae23f5b62360954007b99b64600
tree11d9d6c8f9008ca191cb8d093eb3c9c3c13d99d3
parent948b1bb89a44561560531394c18da4a99215f772
perf, x86: implement ARCH_PERFMON_EVENTSEL bit masks

ARCH_PERFMON_EVENTSEL bit masks are often used in the kernel. This
patch adds macros for the bit masks and removes local defines. The
function intel_pmu_raw_event() becomes x86_pmu_raw_event() which is
generic for x86 models and same also for p6. Duplicate code is
removed.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20100330092821.GH11907@erda.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_amd.c
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_p6.c