summaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile/op_model_amd.c
diff options
context:
space:
mode:
authorRobert Richter2009-05-25 19:31:44 +0200
committerRobert Richter2009-06-11 19:42:14 +0200
commitef8828ddf828174785421af67c281144d4b8e796 (patch)
tree28aef872bb6d3fd4455b508b73f81639a4fca1aa /arch/x86/oprofile/op_model_amd.c
parentx86/oprofile: remove unused macros for AMD virtualization profiling (diff)
downloadkernel-qcow2-linux-ef8828ddf828174785421af67c281144d4b8e796.tar.gz
kernel-qcow2-linux-ef8828ddf828174785421af67c281144d4b8e796.tar.xz
kernel-qcow2-linux-ef8828ddf828174785421af67c281144d4b8e796.zip
x86/oprofile: pass the model to setup_ctrs() functions
In follow-on patches the setup_ctrs() functions will need data that describes the model. This patch extends the function argument list to pass a pointer of the model to these function. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_model_amd.c')
-rw-r--r--arch/x86/oprofile/op_model_amd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index aaa7ffaed6b9..86e0a01ba125 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -85,7 +85,8 @@ static void op_amd_fill_in_addresses(struct op_msrs * const msrs)
}
-static void op_amd_setup_ctrs(struct op_msrs const * const msrs)
+static void op_amd_setup_ctrs(struct op_x86_model_spec const *model,
+ struct op_msrs const * const msrs)
{
unsigned int low, high;
int i;