Skip to contentSkip to conversation

cpufreq "cpu group" awareness: remove FIXME in speedstep-ich

PATCH New Dominik Brodowski 1 participant 1 message Sep 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 cpufreq "cpu group" awareness: remove FIXME in speedstep-ich

Remove the FIXME in speedstep-ich.

 arch/i386/kernel/cpu/cpufreq/speedstep-ich.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c +2 -6
diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c linux/arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
@@ -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 */