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>
This commit is contained in:
@@ -542,7 +542,8 @@ static void pmc_setup_one_p4_counter(unsigned int ctr)
|
||||
}
|
||||
|
||||
|
||||
static void p4_setup_ctrs(struct op_msrs const * const msrs)
|
||||
static void p4_setup_ctrs(struct op_x86_model_spec const *model,
|
||||
struct op_msrs const * const msrs)
|
||||
{
|
||||
unsigned int i;
|
||||
unsigned int low, high;
|
||||
|
Reference in New Issue
Block a user