diff options
author | Robert Richter <robert.richter@amd.com> | 2009-05-25 13:31:44 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-06-11 13:42:14 -0400 |
commit | ef8828ddf828174785421af67c281144d4b8e796 (patch) | |
tree | 28aef872bb6d3fd4455b508b73f81639a4fca1aa /arch/x86/oprofile/op_model_p4.c | |
parent | 9c59354b48ce9cf28048b02fea73dd0236f876ea (diff) |
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_p4.c')
-rw-r--r-- | arch/x86/oprofile/op_model_p4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/oprofile/op_model_p4.c b/arch/x86/oprofile/op_model_p4.c index 365d8a9c03d3..05ba0287b1f7 100644 --- a/arch/x86/oprofile/op_model_p4.c +++ b/arch/x86/oprofile/op_model_p4.c | |||
@@ -542,7 +542,8 @@ static void pmc_setup_one_p4_counter(unsigned int ctr) | |||
542 | } | 542 | } |
543 | 543 | ||
544 | 544 | ||
545 | static void p4_setup_ctrs(struct op_msrs const * const msrs) | 545 | static void p4_setup_ctrs(struct op_x86_model_spec const *model, |
546 | struct op_msrs const * const msrs) | ||
546 | { | 547 | { |
547 | unsigned int i; | 548 | unsigned int i; |
548 | unsigned int low, high; | 549 | unsigned int low, high; |