]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit2474d971c150c406a409fb43d085812392c86463
treede3f4ef50a8aefc180b874d20d3bdcf338d031d9
parent4725f5c00fc534f0d670d565a8849adee4c2b53c
[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