]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cpufreq: fix cpufreq_update_policy
authorAndrew Morton <akpm@osdl.org>
Wed, 28 Jan 2004 07:54:55 +0000 (23:54 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 28 Jan 2004 07:54:55 +0000 (23:54 -0800)
From: Dominik Brodowski <linux@dominikbrodowski.de>

This brown paper bag patch is needed to assure cpufreq_update_policy works
correctly.

Please apply, else the next ACPI patch will cause trouble with thermal
management [it needs cpufreq_update_policy to work properly].

Fix a horribly wrong memcpy instruction in cpufreq_update_policy which
caused it to oops.

drivers/cpufreq/cpufreq.c

index 25ba41b0f6a7f28c0c1bb8a0c30f8b1470e823c6..f2b73f078eef6103e36fce6c6ad9ed497c5c5597 100644 (file)
@@ -868,7 +868,7 @@ int cpufreq_update_policy(unsigned int cpu)
        down(&data->lock);
 
        memcpy(&policy, 
-              &data, 
+              data,
               sizeof(struct cpufreq_policy));
        policy.min = data->user_policy.min;
        policy.max = data->user_policy.max;