perf, x86: Calculate perfctr msr addresses in helper functions
authorRobert Richter <robert.richter@amd.com>
Wed, 2 Feb 2011 16:40:57 +0000 (17:40 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Feb 2011 12:30:50 +0000 (13:30 +0100)
commit41bf498949a263fa0b2d32524b89d696ac330e94
treedfcd9497b87942185ef1db406c8b236a89bc1b4b
parentd45dd923fcc620c948bd1eda16cc61426ac31646
perf, x86: Calculate perfctr msr addresses in helper functions

This patch adds helper functions to calculate perfctr msr addresses.
We need this to later add support for AMD family 15h cpus. For this we
have to change the algorithms to generate the perfctr's msr addresses.

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