Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86049
b: refs/heads/master
c: ea833f0
h: refs/heads/master
i:
  86047: c03c4d5
v: v3
  • Loading branch information
Holger Schurig authored and Russell King committed Feb 17, 2008
1 parent 49772ac commit b3f88b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac2bf5bdc6ab9d820152623122973ccb1c166031
refs/heads/master: ea833f0b5a8afcc698c5ccb06237902c0e21e032
8 changes: 7 additions & 1 deletion trunk/arch/arm/mach-pxa/cpu-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int pxa_set_target(struct cpufreq_policy *policy,
struct cpufreq_frequency_table *pxa_freqs_table;
pxa_freqs_t *pxa_freq_settings;
struct cpufreq_freqs freqs;
int idx;
unsigned int idx;
unsigned long flags;
unsigned int unused, preset_mdrefr, postset_mdrefr;
void *ramstart = phys_to_virt(0xa0000000);
Expand Down Expand Up @@ -233,6 +233,11 @@ static int pxa_set_target(struct cpufreq_policy *policy,
return 0;
}

static unsigned int pxa_cpufreq_get(unsigned int cpu)
{
return get_clk_frequency_khz(0);
}

static int pxa_cpufreq_init(struct cpufreq_policy *policy)
{
int i;
Expand Down Expand Up @@ -269,6 +274,7 @@ static struct cpufreq_driver pxa_cpufreq_driver = {
.verify = pxa_verify_policy,
.target = pxa_set_target,
.init = pxa_cpufreq_init,
.get = pxa_cpufreq_get,
.name = "PXA25x",
};

Expand Down

0 comments on commit b3f88b8

Please sign in to comment.