diff options
Diffstat (limited to 'drivers/cpufreq/gx-suspmod.c')
-rw-r--r-- | drivers/cpufreq/gx-suspmod.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/cpufreq/gx-suspmod.c b/drivers/cpufreq/gx-suspmod.c index 70442c7b5e71..d83e8266a58e 100644 --- a/drivers/cpufreq/gx-suspmod.c +++ b/drivers/cpufreq/gx-suspmod.c | |||
@@ -401,7 +401,7 @@ static int cpufreq_gx_target(struct cpufreq_policy *policy, | |||
401 | 401 | ||
402 | static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy) | 402 | static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy) |
403 | { | 403 | { |
404 | unsigned int maxfreq, curfreq; | 404 | unsigned int maxfreq; |
405 | 405 | ||
406 | if (!policy || policy->cpu != 0) | 406 | if (!policy || policy->cpu != 0) |
407 | return -ENODEV; | 407 | return -ENODEV; |
@@ -415,10 +415,8 @@ static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy) | |||
415 | maxfreq = 30000 * gx_freq_mult[getCx86(CX86_DIR1) & 0x0f]; | 415 | maxfreq = 30000 * gx_freq_mult[getCx86(CX86_DIR1) & 0x0f]; |
416 | 416 | ||
417 | stock_freq = maxfreq; | 417 | stock_freq = maxfreq; |
418 | curfreq = gx_get_cpuspeed(0); | ||
419 | 418 | ||
420 | pr_debug("cpu max frequency is %d.\n", maxfreq); | 419 | pr_debug("cpu max frequency is %d.\n", maxfreq); |
421 | pr_debug("cpu current frequency is %dkHz.\n", curfreq); | ||
422 | 420 | ||
423 | /* setup basic struct for cpufreq API */ | 421 | /* setup basic struct for cpufreq API */ |
424 | policy->cpu = 0; | 422 | policy->cpu = 0; |
@@ -428,7 +426,6 @@ static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy) | |||
428 | else | 426 | else |
429 | policy->min = maxfreq / POLICY_MIN_DIV; | 427 | policy->min = maxfreq / POLICY_MIN_DIV; |
430 | policy->max = maxfreq; | 428 | policy->max = maxfreq; |
431 | policy->cur = curfreq; | ||
432 | policy->cpuinfo.min_freq = maxfreq / max_duration; | 429 | policy->cpuinfo.min_freq = maxfreq / max_duration; |
433 | policy->cpuinfo.max_freq = maxfreq; | 430 | policy->cpuinfo.max_freq = maxfreq; |
434 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; | 431 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; |