diff options
author | Robert Richter <robert.richter@amd.com> | 2009-07-06 08:43:55 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-07-20 10:43:21 -0400 |
commit | 52471c67ee2fa5ed6f700ef57bf27833c63b2192 (patch) | |
tree | a08002075dc251f6ebea7fad45b765ef780a387a /arch/x86/oprofile/op_model_ppro.c | |
parent | 2904a527575344a804fdd82b1f8d09a8731d8d49 (diff) |
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>
Diffstat (limited to 'arch/x86/oprofile/op_model_ppro.c')
-rw-r--r-- | arch/x86/oprofile/op_model_ppro.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/oprofile/op_model_ppro.c b/arch/x86/oprofile/op_model_ppro.c index 753a02ab215b..4899215999de 100644 --- a/arch/x86/oprofile/op_model_ppro.c +++ b/arch/x86/oprofile/op_model_ppro.c | |||
@@ -206,7 +206,6 @@ static void ppro_shutdown(struct op_msrs const * const msrs) | |||
206 | struct op_x86_model_spec op_ppro_spec = { | 206 | struct op_x86_model_spec op_ppro_spec = { |
207 | .num_counters = 2, | 207 | .num_counters = 2, |
208 | .num_controls = 2, | 208 | .num_controls = 2, |
209 | .num_virt_counters = 2, | ||
210 | .reserved = MSR_PPRO_EVENTSEL_RESERVED, | 209 | .reserved = MSR_PPRO_EVENTSEL_RESERVED, |
211 | .fill_in_addresses = &ppro_fill_in_addresses, | 210 | .fill_in_addresses = &ppro_fill_in_addresses, |
212 | .setup_ctrs = &ppro_setup_ctrs, | 211 | .setup_ctrs = &ppro_setup_ctrs, |