Skip to content

Commit

Permalink
cpufreq: OMAP: Enable all CPUs in shared policy mask
Browse files Browse the repository at this point in the history
Enable all CPUs in the shared policy in the CPU init callback.
Otherwise, the governor CPUFREQ_GOV_START event is invoked with
a policy that only includes the first CPU, leaving other CPUs
uninitialized by the governor.

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Todd Poynor authored and Kevin Hilman committed Nov 8, 2011
1 parent 46c1221 commit ed8ce00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/cpufreq/omap-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
{
int result = 0;
struct device *mpu_dev;
static cpumask_var_t cpumask;

if (cpu_is_omap24xx())
mpu_clk = clk_get(NULL, "virt_prcm_set");
Expand Down Expand Up @@ -200,8 +199,7 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
*/
if (is_smp()) {
policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
cpumask_or(cpumask, cpumask_of(policy->cpu), cpumask);
cpumask_copy(policy->cpus, cpumask);
cpumask_setall(policy->cpus);
}

/* FIXME: what's the actual transition time? */
Expand Down

0 comments on commit ed8ce00

Please sign in to comment.