debug printk infrastructure -convert cpufreq
Subsystems (2)
PATCH 8/8 debug printk infrastructure -convert cpufreq
Signed-off-by Jason Baron <[email protected]>
--- arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 1 + arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c | 1 + arch/x86/kernel/cpu/cpufreq/gx-suspmod.c | 1 + arch/x86/kernel/cpu/cpufreq/longhaul.c | 1 + arch/x86/kernel/cpu/cpufreq/longrun.c | 1 + arch/x86/kernel/cpu/cpufreq/p4-clockmod.c | 1 + arch/x86/kernel/cpu/cpufreq/powernow-k6.c | 1 + arch/x86/kernel/cpu/cpufreq/powernow-k7.c | 1 + arch/x86/kernel/cpu/cpufreq/powernow-k8.c | 1 + arch/x86/kernel/cpu/cpufreq/sc520_freq.c | 1 + arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c | 1 + arch/x86/kernel/cpu/cpufreq/speedstep-ich.c | 1 + arch/x86/kernel/cpu/cpufreq/speedstep-smi.c | 1 + drivers/cpufreq/cpufreq.c | 5 +++-- drivers/cpufreq/cpufreq_performance.c | 1 + drivers/cpufreq/cpufreq_powersave.c | 1 + drivers/cpufreq/cpufreq_userspace.c | 1 + include/linux/cpufreq.h | 3 ++- 18 files changed, 21 insertions(+), 3 deletions(-)
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +1 -0
@@ -768,6 +768,7 @@ static int __init acpi_cpufreq_init(void) {int ret; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );dprintk ("acpi_cpufreq_init\n" ); ret =acpi_cpufreq_early_init ();
arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c +1 -0
@@ -422,6 +422,7 @@ static int __init nforce2_init(void)return -ENODEV ; } +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );return cpufreq_register_driver (&nforce2_driver); }
arch/x86/kernel/cpu/cpufreq/gx-suspmod.c +1 -0
@@ -446,6 +446,7 @@ static int __init cpufreq_gx_init(void)struct gxfreq_params *params;struct pci_dev *gx_pci; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );/* Test if we have the right hardware */ if ((gx_pci =gx_detect_chipset ()) ==NULL )return -ENODEV ;
arch/x86/kernel/cpu/cpufreq/longhaul.c +1 -0
@@ -430,6 +430,7 @@ static int __init longhaul_get_ranges(void)unsigned int ratio;int mult; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );/* Get current frequency */ mult =longhaul_get_cpu_mult ();if (mult ==-1 ) {
arch/x86/kernel/cpu/cpufreq/longrun.c +1 -0
@@ -300,6 +300,7 @@ static int __init longrun_init(void) {struct cpuinfo_x86 *c = &cpu_data (0 ); +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );if (c->x86_vendor !=X86_VENDOR_TRANSMETA || !cpu_has (c,X86_FEATURE_LONGRUN ))return -ENODEV ;
arch/x86/kernel/cpu/cpufreq/p4-clockmod.c +1 -0
@@ -282,6 +282,7 @@ static int __init cpufreq_p4_init(void)struct cpuinfo_x86 *c = &cpu_data (0 );int ret; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );/* * THERM_CONTROL is architectural for IA32 now, so * we can rely on the capability checks
arch/x86/kernel/cpu/cpufreq/powernow-k6.c +1 -0
@@ -217,6 +217,7 @@ static int __init powernow_k6_init(void) {struct cpuinfo_x86 *c = &cpu_data (0 ); +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );if ((c->x86_vendor !=X86_VENDOR_AMD ) || (c->x86 !=5 ) || ((c->x86_model !=12 ) && (c->x86_model !=13 )))return -ENODEV ;
arch/x86/kernel/cpu/cpufreq/powernow-k7.c +1 -0
@@ -678,6 +678,7 @@ static struct cpufreq_driver powernow_driver = {static int __init powernow_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );if (check_powernow ()==0 )return -ENODEV ;return cpufreq_register_driver (&powernow_driver);
arch/x86/kernel/cpu/cpufreq/powernow-k8.c +1 -0
@@ -1286,6 +1286,7 @@ static int __cpuinit powernowk8_init(void) {unsigned int i, supported_cpus =0 ; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );for_each_online_cpu (i) {if (check_supported_cpu (i)) supported_cpus++;
arch/x86/kernel/cpu/cpufreq/sc520_freq.c +1 -0
@@ -154,6 +154,7 @@ static int __init sc520_freq_init(void)struct cpuinfo_x86 *c = &cpu_data (0 );int err; +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );/* Test if we have the right hardware */ if (c->x86_vendor !=X86_VENDOR_AMD || c->x86 !=4 || c->x86_model !=9 ) {
arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c +1 -0
@@ -615,6 +615,7 @@ static int __init centrino_init(void) {struct cpuinfo_x86 *cpu = &cpu_data (0 ); +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );if (!cpu_has (cpu,X86_FEATURE_EST ))return -ENODEV ;
arch/x86/kernel/cpu/cpufreq/speedstep-ich.c +1 -0
@@ -393,6 +393,7 @@ static struct cpufreq_driver speedstep_driver = {*/ static int __init speedstep_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );/* detect processor */ speedstep_processor =speedstep_detect_processor ();if (!speedstep_processor) {
arch/x86/kernel/cpu/cpufreq/speedstep-smi.c +1 -0
@@ -361,6 +361,7 @@ static struct cpufreq_driver speedstep_driver = {*/ static int __init speedstep_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL ); speedstep_processor =speedstep_detect_processor ();switch (speedstep_processor) {
drivers/cpufreq/cpufreq.c +3 -2
@@ -179,7 +179,7 @@ EXPORT_SYMBOL_GPL(cpufreq_cpu_put);/********************************************************************* * UNIFIED DEBUG HELPERS * *********************************************************************/ -#ifdef CONFIG_CPU_FREQ_DEBUG +#if defined(CONFIG_CPU_FREQ_DEBUG ) || defined (CONFIG_DYNAMIC_PRINTK )/* what part(s) of the CPUfreq subsystem are debugged? */ static unsigned int debug;
@@ -224,7 +224,7 @@ void cpufreq_debug_printk(unsigned int type, const char *prefix,unsigned long flags;WARN_ON (!prefix); -if (type & debug) { +if (dev_dbg_enabled (type)) {spin_lock_irqsave (&disable_ratelimit_lock, flags);if (!disable_ratelimit && debug_ratelimit && !printk_ratelimit ()) {
@@ -1889,6 +1889,7 @@ static int __init cpufreq_core_init(void) {int cpu; +register_dev_dbg_handler (NULL ,TYPE_FLAG ,NULL , debug);for_each_possible_cpu (cpu) {per_cpu (policy_cpu, cpu) =-1 ;init_rwsem (&per_cpu (cpu_policy_rwsem, cpu));
drivers/cpufreq/cpufreq_performance.c +1 -0
@@ -46,6 +46,7 @@ EXPORT_SYMBOL(cpufreq_gov_performance);static int __init cpufreq_gov_performance_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );return cpufreq_register_governor (&cpufreq_gov_performance); }
drivers/cpufreq/cpufreq_powersave.c +1 -0
@@ -44,6 +44,7 @@ static struct cpufreq_governor cpufreq_gov_powersave = {static int __init cpufreq_gov_powersave_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );return cpufreq_register_governor (&cpufreq_gov_powersave); }
drivers/cpufreq/cpufreq_userspace.c +1 -0
@@ -191,6 +191,7 @@ EXPORT_SYMBOL(cpufreq_gov_userspace);static int __init cpufreq_gov_userspace_init (void ) { +register_dev_dbg_handler ("cpufreq" ,NULL ,NULL ,NULL );return cpufreq_register_governor (&cpufreq_gov_userspace); }
include/linux/cpufreq.h +2 -1
@@ -366,8 +366,9 @@ void cpufreq_frequency_table_put_attr(unsigned int cpu);#define CPUFREQ_DEBUG_DRIVER 2#define CPUFREQ_DEBUG_GOVERNOR 4 -#ifdef CONFIG_CPU_FREQ_DEBUG +#if defined(CONFIG_CPU_FREQ_DEBUG ) || defined (CONFIG_DYNAMIC_PRINTK ) +#define DEBUG 1extern void cpufreq_debug_printk (unsigned int type,const char *prefix,const char *fmt, ...);
Signature · 1 line
1.5.4.5