Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29166
b: refs/heads/master
c: 7e1f19e
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Len Brown committed Apr 2, 2006
1 parent f7f735c commit fddae7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d52bb94d56676acd9bdac8e097257a87b4b1b2e1
refs/heads/master: 7e1f19e50371e1d148226b64c8edc77fec47fa5b
4 changes: 4 additions & 0 deletions trunk/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,12 @@ acpi_cpufreq_target (
freqs.old = data->freq_table[cur_state].frequency;
freqs.new = data->freq_table[next_state].frequency;

#ifdef CONFIG_HOTPLUG_CPU
/* cpufreq holds the hotplug lock, so we are safe from here on */
cpus_and(online_policy_cpus, cpu_online_map, policy->cpus);
#else
online_policy_cpus = policy->cpus;
#endif

for_each_cpu_mask(j, online_policy_cpus) {
freqs.cpu = j;
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,12 @@ static int centrino_target (struct cpufreq_policy *policy,
return -EINVAL;
}

#ifdef CONFIG_HOTPLUG_CPU
/* cpufreq holds the hotplug lock, so we are safe from here on */
cpus_and(online_policy_cpus, cpu_online_map, policy->cpus);
#else
online_policy_cpus = policy->cpus;
#endif

saved_mask = current->cpus_allowed;
first_cpu = 1;
Expand Down

0 comments on commit fddae7d

Please sign in to comment.