aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-11-21 21:07:16 +1030
committerDave Jones <davej@redhat.com>2008-12-05 15:20:10 -0500
commit9963d1aad40946b1b6d34f9bee8d8a1b9032ae22 (patch)
treede3f4ef50a8aefc180b874d20d3bdcf338d031d9 /drivers/cpufreq/cpufreq.c
parentbbeba4c35c252b2e961f09ce6ebe76b2cd5e7e3e (diff)
[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>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
0 files changed, 0 insertions, 0 deletions