perf, x86: Use helper function in x86_pmu_enable_all()
authorRobert Richter <robert.richter@amd.com>
Wed, 2 Feb 2011 16:40:56 +0000 (17:40 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Feb 2011 12:30:49 +0000 (13:30 +0100)
commitd45dd923fcc620c948bd1eda16cc61426ac31646
treeb80b08355f79553e0c3b201e0d99d69a7ef24345
parent023695d96ee06f36cf5014e286edcd623e9fb847
perf, x86: Use helper function in x86_pmu_enable_all()

Use helper function in x86_pmu_enable_all() to minimize access to
x86_pmu.eventsel in the fast path. The counter's msr address is now
calculated using struct hw_perf_event. Later we add code that
calculates the msr addresses with a table lookup which shouldn't be
done in the fast path.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1296664860-10886-2-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c