x86/oprofile: Modify initialization of num_virt_counters
Models that do not yet support counter multiplexing have to setup num_virt_counters. This patch implements the setup from num_counters if num_virt_counters is not set. Thus, num_virt_counters must be setup only for multiplexing support. Signed-off-by: Robert Richter <robert.richter@amd.com>
This commit is contained in:
@@ -206,7 +206,6 @@ static void ppro_shutdown(struct op_msrs const * const msrs)
|
||||
struct op_x86_model_spec op_ppro_spec = {
|
||||
.num_counters = 2,
|
||||
.num_controls = 2,
|
||||
.num_virt_counters = 2,
|
||||
.reserved = MSR_PPRO_EVENTSEL_RESERVED,
|
||||
.fill_in_addresses = &ppro_fill_in_addresses,
|
||||
.setup_ctrs = &ppro_setup_ctrs,
|
||||
|
Reference in New Issue
Block a user