Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55026
b: refs/heads/master
c: 2abb701
h: refs/heads/master
v: v3
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed May 7, 2007
1 parent f8d1f30 commit 01cd025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 543b9fd3528f64c4b20439de0edb453764482de7
refs/heads/master: 2abb7019e2877e7f9b1d2432f5a5c36caca5ed1c
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/platforms/pasemi/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <asm/hw_irq.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/time.h>

#define SDCASR_REG 0x0100
#define SDCASR_REG_STRIDE 0x1000
Expand Down Expand Up @@ -204,6 +205,8 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
policy->cur = pas_freqs[cur_astate].frequency;
policy->cpus = cpu_online_map;

ppc_proc_freq = policy->cur * 1000ul;

cpufreq_frequency_table_get_attr(pas_freqs, policy->cpu);

/* this ensures that policy->cpuinfo_min and policy->cpuinfo_max
Expand Down Expand Up @@ -270,6 +273,7 @@ static int pas_cpufreq_target(struct cpufreq_policy *policy,
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
mutex_unlock(&pas_switch_mutex);

ppc_proc_freq = freqs.new * 1000ul;
return 0;
}

Expand Down

0 comments on commit 01cd025

Please sign in to comment.