From 4d23b5bcb467b1b606eb6e8c275d7cafce175cc0 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 21 Mar 2007 21:40:42 +1100 Subject: [PATCH] --- yaml --- r: 54991 b: refs/heads/master c: 8fce6dd29fa9d1ac880bf0cb4528e9bd5878cf68 h: refs/heads/master i: 54989: 138f084796acdeca6755ac8817e51067e45a26b4 54987: 8b4a200cdd429d2398a92a170d62a7d3ec6bddb8 54983: 986563095e238643896a9dbbe983962715239aaf 54975: b1416d7e1c1074ffd8c91e11773334fe97629580 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/powermac/cpufreq_64.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index a48bc26047b0..f21e3df8c2cb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b302887854d6f0c6f9fc3f1080535e7c1bd53134 +refs/heads/master: 8fce6dd29fa9d1ac880bf0cb4528e9bd5878cf68 diff --git a/trunk/arch/powerpc/platforms/powermac/cpufreq_64.c b/trunk/arch/powerpc/platforms/powermac/cpufreq_64.c index 567d5523b690..00f50298c342 100644 --- a/trunk/arch/powerpc/platforms/powermac/cpufreq_64.c +++ b/trunk/arch/powerpc/platforms/powermac/cpufreq_64.c @@ -357,13 +357,13 @@ static unsigned int g5_cpufreq_get_speed(unsigned int cpu) static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy) { - if (policy->cpu != 0) - return -ENODEV; - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; policy->cur = g5_cpu_freqs[g5_query_freq()].frequency; - policy->cpus = cpu_possible_map; + /* secondary CPUs are tied to the primary one by the + * cpufreq core if in the secondary policy we tell it that + * it actually must be one policy together with all others. */ + policy->cpus = cpu_online_map; cpufreq_frequency_table_get_attr(g5_cpu_freqs, policy->cpu); return cpufreq_frequency_table_cpuinfo(policy,