[CPUFREQ] speedstep-centrino: quieten driver (Venkatesh Pallipadi) Patch to remove speedstep-centrino error messages getting printed by default. Print them only when debug flags are enabled. The reason for this patch is - With the multiple drivers model that we have now, any installation will try different drivers one after the other, until one of them succeeds. So, failure to add speedstep-centrino alone doesn't mean error, as some other driver (say acpi.ko) can succeed later and system will still be able to use speedstep. Printing the error whenever speedstep-centrino fails can confuse the enduser. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Dominik Brodowski --- arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) Index: 2.6.10/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c =================================================================== --- 2.6.10.orig/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2004-12-25 17:42:39.203018562 +0100 +++ 2.6.10/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2004-12-25 17:42:40.886778622 +0100 @@ -241,7 +241,7 @@ if (model->cpu_id == NULL) { /* No match at all */ - printk(KERN_INFO PFX "no support for CPU model \"%s\": " + dprintk(KERN_INFO PFX "no support for CPU model \"%s\": " "send /proc/cpuinfo to " MAINTAINER "\n", cpu->x86_model_id); return -ENOENT; @@ -249,10 +249,10 @@ if (model->op_points == NULL) { /* Matched a non-match */ - printk(KERN_INFO PFX "no table support for CPU model \"%s\": \n", + dprintk(KERN_INFO PFX "no table support for CPU model \"%s\": \n", cpu->x86_model_id); #ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI - printk(KERN_INFO PFX "try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled\n"); + dprintk(KERN_INFO PFX "try compiling with CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI enabled\n"); #endif return -ENOENT; } @@ -384,7 +384,7 @@ /* register with ACPI core */ if (acpi_processor_register_performance(&p, cpu)) { - printk(KERN_INFO PFX "obtaining ACPI data failed\n"); + dprintk(KERN_INFO PFX "obtaining ACPI data failed\n"); return -EIO; } @@ -482,7 +482,7 @@ kfree(centrino_model[cpu]); err_unreg: acpi_processor_unregister_performance(&p, cpu); - printk(KERN_INFO PFX "invalid ACPI data\n"); + dprintk(KERN_INFO PFX "invalid ACPI data\n"); return (result); } #else @@ -513,7 +513,7 @@ return -ENODEV; if (!centrino_cpu[policy->cpu]) { - printk(KERN_INFO PFX "found unsupported CPU with " + dprintk(KERN_INFO PFX "found unsupported CPU with " "Enhanced SpeedStep: send /proc/cpuinfo to " MAINTAINER "\n"); return -ENODEV;