diff options
Diffstat (limited to 'arch/x86/oprofile/nmi_int.c')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 202864ad49a..e5171c99e15 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -389,10 +389,16 @@ static int __init p4_init(char **cpu_type) | |||
389 | return 0; | 389 | return 0; |
390 | } | 390 | } |
391 | 391 | ||
392 | int force_arch_perfmon; | ||
393 | module_param(force_arch_perfmon, int, 0); | ||
394 | |||
392 | static int __init ppro_init(char **cpu_type) | 395 | static int __init ppro_init(char **cpu_type) |
393 | { | 396 | { |
394 | __u8 cpu_model = boot_cpu_data.x86_model; | 397 | __u8 cpu_model = boot_cpu_data.x86_model; |
395 | 398 | ||
399 | if (force_arch_perfmon && cpu_has_arch_perfmon) | ||
400 | return 0; | ||
401 | |||
396 | switch (cpu_model) { | 402 | switch (cpu_model) { |
397 | case 0 ... 2: | 403 | case 0 ... 2: |
398 | *cpu_type = "i386/ppro"; | 404 | *cpu_type = "i386/ppro"; |