Skip to content

Commit

Permalink
Fix quilt merge error in acpi-cpufreq.c
Browse files Browse the repository at this point in the history
We ended up incorrectly using '&cur' instead of '&readin' in the
work_on_cpu() -> smp_call_function_single() transformation in commit
01599fc ("cpufreq: use
smp_call_function_[single|many]() in acpi-cpufreq.c").

Andrew explains:
 "OK, the acpi tree went and had conflicting changes merged into it after
  I'd written the patch and it appears that I incorrectly reverted part
  of 18b2646 while fixing the resulting
  rejects.

  Switching it to `readin' looks correct."

Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
torvalds committed Apr 14, 2009
1 parent 2e1c63b commit 1c98aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
Expand Up @@ -277,7 +277,7 @@ static unsigned int get_measured_perf(struct cpufreq_policy *policy,
unsigned int perf_percent;
unsigned int retval;

if (smp_call_function_single(cpu, read_measured_perf_ctrs, &cur, 1))
if (smp_call_function_single(cpu, read_measured_perf_ctrs, &readin, 1))
return 0;

cur.aperf.whole = readin.aperf.whole -
Expand Down

0 comments on commit 1c98aa7

Please sign in to comment.