[CPUFREQ] use dynamic debug instead of custom infrastructure
With dynamic debug having gained the capability to report debug messages also during the boot process, it offers a far superior interface for debug messages than the custom cpufreq infrastructure. As a first step, remove the old cpufreq_debug_printk() function and replace it with a call to the generic pr_debug() function. How can dynamic debug be used on cpufreq? You need a kernel which has CONFIG_DYNAMIC_DEBUG enabled. To enabled debugging during runtime, mount debugfs and $ echo -n 'module cpufreq +p' > /sys/kernel/debug/dynamic_debug/control for debugging the complete "cpufreq" module. To achieve the same goal during boot, append ddebug_query="module cpufreq +p" as a boot parameter to the kernel of your choice. For more detailled instructions, please see Documentation/dynamic-debug-howto.txt Signed-off-by:Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by:
Dave Jones <davej@redhat.com>
Showing
- arch/arm/mach-davinci/cpufreq.c 1 addition, 3 deletionsarch/arm/mach-davinci/cpufreq.c
- arch/blackfin/mach-common/dpmc.c 0 additions, 3 deletionsarch/blackfin/mach-common/dpmc.c
- arch/ia64/kernel/cpufreq/acpi-cpufreq.c 21 additions, 23 deletionsarch/ia64/kernel/cpufreq/acpi-cpufreq.c
- arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c 21 additions, 24 deletionsarch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
- arch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c 2 additions, 4 deletionsarch/x86/kernel/cpu/cpufreq/cpufreq-nforce2.c
- arch/x86/kernel/cpu/cpufreq/gx-suspmod.c 9 additions, 12 deletionsarch/x86/kernel/cpu/cpufreq/gx-suspmod.c
- arch/x86/kernel/cpu/cpufreq/longhaul.c 3 additions, 8 deletionsarch/x86/kernel/cpu/cpufreq/longhaul.c
- arch/x86/kernel/cpu/cpufreq/longrun.c 7 additions, 10 deletionsarch/x86/kernel/cpu/cpufreq/longrun.c
- arch/x86/kernel/cpu/cpufreq/p4-clockmod.c 4 additions, 6 deletionsarch/x86/kernel/cpu/cpufreq/p4-clockmod.c
- arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c 22 additions, 25 deletionsarch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
- arch/x86/kernel/cpu/cpufreq/powernow-k7.c 14 additions, 19 deletionsarch/x86/kernel/cpu/cpufreq/powernow-k7.c
- arch/x86/kernel/cpu/cpufreq/powernow-k8.c 50 additions, 50 deletionsarch/x86/kernel/cpu/cpufreq/powernow-k8.c
- arch/x86/kernel/cpu/cpufreq/powernow-k8.h 0 additions, 2 deletionsarch/x86/kernel/cpu/cpufreq/powernow-k8.h
- arch/x86/kernel/cpu/cpufreq/sc520_freq.c 2 additions, 4 deletionsarch/x86/kernel/cpu/cpufreq/sc520_freq.c
- arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c 10 additions, 13 deletionsarch/x86/kernel/cpu/cpufreq/speedstep-centrino.c
- arch/x86/kernel/cpu/cpufreq/speedstep-ich.c 12 additions, 16 deletionsarch/x86/kernel/cpu/cpufreq/speedstep-ich.c
- arch/x86/kernel/cpu/cpufreq/speedstep-lib.c 20 additions, 23 deletionsarch/x86/kernel/cpu/cpufreq/speedstep-lib.c
- arch/x86/kernel/cpu/cpufreq/speedstep-smi.c 19 additions, 22 deletionsarch/x86/kernel/cpu/cpufreq/speedstep-smi.c
- drivers/acpi/processor_perflib.c 1 addition, 5 deletionsdrivers/acpi/processor_perflib.c
- drivers/cpufreq/Kconfig 0 additions, 13 deletionsdrivers/cpufreq/Kconfig
Loading
Please register or sign in to comment