diff options
author | Robert Richter <robert.richter@amd.com> | 2009-07-06 14:43:55 +0200 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-07-20 16:43:21 +0200 |
commit | 52471c67ee2fa5ed6f700ef57bf27833c63b2192 (patch) | |
tree | a08002075dc251f6ebea7fad45b765ef780a387a /arch/x86/oprofile/nmi_int.c | |
parent | x86/oprofile: Remove unused num_virt_controls from struct op_x86_model_spec (diff) | |
download | linux-52471c67ee2fa5ed6f700ef57bf27833c63b2192.tar.xz linux-52471c67ee2fa5ed6f700ef57bf27833c63b2192.zip |
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/nmi_int.c')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 826f391b4229..82ee29517f16 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c @@ -674,6 +674,9 @@ int __init op_nmi_init(struct oprofile_operations *ops) if (ret) return ret; + if (!model->num_virt_counters) + model->num_virt_counters = model->num_counters; + init_sysfs(); using_nmi = 1; printk(KERN_INFO "oprofile: using NMI interrupt.\n"); |