Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62232
b: refs/heads/master
c: 64bafa9
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Christophe DUBOIS authored and Arnd Bergmann committed Jul 20, 2007
1 parent 5dc883d commit c747031
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 74889e41d9a1f80928130a02af9b010673bc5ba7
refs/heads/master: 64bafa9db7e92d5a46402613188b71800924ca1f
10 changes: 10 additions & 0 deletions trunk/arch/powerpc/platforms/cell/cbe_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/machdep.h>
#include <asm/of_platform.h>
#include <asm/prom.h>
#include "cbe_regs.h"
#include "cbe_cpufreq.h"

static DEFINE_MUTEX(cbe_switch_mutex);
Expand Down Expand Up @@ -78,6 +79,15 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)

pr_debug("init cpufreq on CPU %d\n", policy->cpu);

/*
* Let's check we can actually get to the CELL regs
*/
if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
!cbe_get_cpu_mic_tm_regs(policy->cpu)) {
pr_info("invalid CBE regs pointers for cpufreq\n");
return -EINVAL;
}

max_freqp = of_get_property(cpu, "clock-frequency", NULL);

of_node_put(cpu);
Expand Down

0 comments on commit c747031

Please sign in to comment.