Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136471
b: refs/heads/master
c: 5cd7376
h: refs/heads/master
i:
  136469: dcd1439
  136467: 7bcb5af
  136463: 6b457a4
v: v3
  • Loading branch information
Ingo Molnar committed Jan 15, 2009
1 parent faf6f66 commit 569f52f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49a93bc978b4b3d564f6b330179b4cc2724a031d
refs/heads/master: 5cd7376200be7b8bab085557ff5876b04bd84191
13 changes: 4 additions & 9 deletions trunk/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ typedef union {

struct drv_cmd {
unsigned int type;
cpumask_var_t mask;
const struct cpumask *mask;
drv_addr_union addr;
u32 val;
};
Expand Down Expand Up @@ -235,8 +235,7 @@ static u32 get_cur_val(const struct cpumask *mask)
return 0;
}

cpumask_copy(cmd.mask, mask);

cmd.mask = mask;
drv_read(&cmd);

dprintk("get_cur_val = %u\n", cmd.val);
Expand Down Expand Up @@ -403,9 +402,6 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
return -ENODEV;
}

if (unlikely(!alloc_cpumask_var(&cmd.mask, GFP_KERNEL)))
return -ENOMEM;

perf = data->acpi_data;
result = cpufreq_frequency_table_target(policy,
data->freq_table,
Expand Down Expand Up @@ -450,9 +446,9 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,

/* cpufreq holds the hotplug lock, so we are safe from here on */
if (policy->shared_type != CPUFREQ_SHARED_TYPE_ANY)
cpumask_and(cmd.mask, cpu_online_mask, policy->cpus);
cmd.mask = policy->cpus;
else
cpumask_copy(cmd.mask, cpumask_of(policy->cpu));
cmd.mask = cpumask_of(policy->cpu);

freqs.old = perf->states[perf->state].core_frequency * 1000;
freqs.new = data->freq_table[next_state].frequency;
Expand All @@ -479,7 +475,6 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy,
perf->state = next_perf_state;

out:
free_cpumask_var(cmd.mask);
return result;
}

Expand Down

0 comments on commit 569f52f

Please sign in to comment.