Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / drivers / cpufreq / cpufreq_performance.c
index f2348e7..de91e33 100644 (file)
 #include <linux/cpufreq.h>
 #include <linux/init.h>
 
+#define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_GOVERNOR, "performance", msg)
+
+
 static int cpufreq_governor_performance(struct cpufreq_policy *policy,
                                        unsigned int event)
 {
        switch (event) {
        case CPUFREQ_GOV_START:
        case CPUFREQ_GOV_LIMITS:
+               dprintk("setting to %u kHz because of event %u\n", policy->max, event);
                __cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H);
                break;
        default:
@@ -28,7 +32,7 @@ static int cpufreq_governor_performance(struct cpufreq_policy *policy,
        }
        return 0;
 }
-                                                            
+
 struct cpufreq_governor cpufreq_gov_performance = {
        .name           = "performance",
        .governor       = cpufreq_governor_performance,