[CPUFREQ] clean up speedstep-centrino and reduce cpumask_t usage
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 21 Nov 2008 10:37:16 +0000 (21:07 +1030)
committerDave Jones <davej@redhat.com>
Fri, 5 Dec 2008 20:20:10 +0000 (15:20 -0500)
commit9963d1aad40946b1b6d34f9bee8d8a1b9032ae22
treede3f4ef50a8aefc180b874d20d3bdcf338d031d9
parentbbeba4c35c252b2e961f09ce6ebe76b2cd5e7e3e
[CPUFREQ] clean up speedstep-centrino and reduce cpumask_t usage

Impact: cleanup

1) The #ifdef CONFIG_HOTPLUG_CPU seems unnecessary these days.
2) The loop can simply skip over offline cpus, rather than creating a tmp mask.
3) set_mask is set to either a single cpu or all online cpus in a policy.
   Since it's just used for set_cpus_allowed(), any offline cpus in a policy
   don't matter, so we can just use cpumask_of_cpu() or the policy->cpus.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c