]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a05302b784b1d32c2d5afaac9060b2799d47f59
treedfcd9497b87942185ef1db406c8b236a89bc1b4b
parent972ee7387bd4d4302cbb8441a7d8e13acd84fe9e
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