From 135d68afd05af5d7d7bf08f0c3e6429b17f0df98 Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Mon, 1 Oct 2012 19:17:04 -0400 Subject: Revert performance CPU frequency scaler. I'm not sure why the ODROID-X people changes this. My CPUs are all running fine without calls to cpu_up. --- drivers/cpufreq/cpufreq_performance.c | 57 ++++++++--------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/drivers/cpufreq/cpufreq_performance.c b/drivers/cpufreq/cpufreq_performance.c index fa39f5aec7f..dd79d1fb43c 100644 --- a/drivers/cpufreq/cpufreq_performance.c +++ b/drivers/cpufreq/cpufreq_performance.c @@ -15,55 +15,24 @@ #include #include -#include -#include -static void cpu_up_work() +static int cpufreq_governor_performance(struct cpufreq_policy *policy, + unsigned int event) { - int cpu; - - for_each_cpu_not(cpu, cpu_online_mask) { - if (cpu == 0) - continue; - cpu_up(cpu); - } -} - -static void cpu_down_work() -{ - int cpu; - - for_each_online_cpu(cpu) { - if (cpu == 0) - continue; - cpu_down(cpu); + switch (event) { + case CPUFREQ_GOV_START: + case CPUFREQ_GOV_LIMITS: + pr_debug("setting to %u kHz because of event %u\n", + policy->max, event); + __cpufreq_driver_target(policy, policy->max, + CPUFREQ_RELATION_H); + break; + default: + break; } + return 0; } -static DECLARE_WORK(performance_up_work, cpu_up_work); -static DECLARE_WORK(performance_down_work, cpu_down_work); - - static int cpufreq_governor_performance(struct cpufreq_policy *policy, - unsigned int event) - { - switch (event) { - case CPUFREQ_GOV_START: - schedule_work_on(0, &performance_up_work); - case CPUFREQ_GOV_LIMITS: - pr_debug("setting to %u kHz because of event %u\n", - policy->max, event); - __cpufreq_driver_target(policy, policy->max, - CPUFREQ_RELATION_H); - break; - case CPUFREQ_GOV_STOP: - schedule_work_on(0, &performance_down_work); - break; - default: - break; - } - -}; - #ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE_MODULE static #endif -- cgit v1.2.2