From: Dominik Brodowski Subject: [PATCH] cpufreq: 4/4 SMT awareness: remove the FIXME in speedstep-ich Date: Mon, 9 Aug 2004 21:54:40 +0200 Sender: cpufreq-bounces@www.linux.org.uk Message-ID: <20040809195440.GG9397@dominikbrodowski.de> Mime-Version: 1.0 Return-path: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cpufreq-bounces+glkc-cpufreq=gmane.org@www.linux.org.uk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: cpufreq@www.linux.org.uk, davej@redhat.com Remove the FIXME in speedstep-ich. arch/i386/kernel/cpu/cpufreq/speedstep-ich.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) Signed-off-by: Dominik Brodowski diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c linux/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c --- linux-original/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c 2004-08-06 21:56:12.658290088 +0200 +++ linux/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c 2004-08-06 22:15:18.153148400 +0200 @@ -311,16 +311,12 @@ unsigned int speed; cpumask_t cpus_allowed; - - /* capability check */ - if (policy->cpu != 0) /* FIXME: better support for SMT in cpufreq core. Up until then, it's better to register only one CPU */ - return -ENODEV; - /* only run on CPU to be set, or on its sibling */ - cpus_allowed = current->cpus_allowed; #ifdef CONFIG_SMP policy->cpus = cpu_sibling_map[policy->cpu]; #endif + + cpus_allowed = current->cpus_allowed; set_cpus_allowed(current, policy->cpus); /* detect low and high frequency */