* 2.5.64 - cpufreq/userspace compile failure (with patch)
@ 2003-03-05 15:36 CaT
0 siblings, 0 replies; only message in thread
From: CaT @ 2003-03-05 15:36 UTC (permalink / raw)
To: linux-kernel
The kernel failed to compile with the cpufreq userspace option being
set. I looked at the code a bit and figured the following patch would
solve it. Haven't tested the kernel yet though.
--- drivers/cpufreq/userspace.c.old Thu Mar 6 02:01:39 2003
+++ drivers/cpufreq/userspace.c Thu Mar 6 02:01:42 2003
@@ -511,7 +511,7 @@
cpu_min_freq[cpu] = policy->min;
cpu_max_freq[cpu] = policy->max;
cpu_cur_freq[cpu] = policy->cur;
- device_create_file (policy->intf.dev, &dev_attr_scaling_setspeed);
+ device_create_file (policy->dev, &dev_attr_scaling_setspeed);
memcpy (¤t_policy[cpu], policy, sizeof(struct cpufreq_policy));
up(&userspace_sem);
break;
@@ -520,7 +520,7 @@
cpu_is_managed[cpu] = 0;
cpu_min_freq[cpu] = 0;
cpu_max_freq[cpu] = 0;
- device_remove_file (policy->intf.dev, &dev_attr_scaling_setspeed);
+ device_remove_file (policy->dev, &dev_attr_scaling_setspeed);
up(&userspace_sem);
module_put(THIS_MODULE);
break;
The problem was that intf was not a member of the cpyfreq_policy struct
(or any other struct in any related .h files that I could see)
--
"Other countries of course, bear the same risk. But there's no doubt his
hatred is mainly directed at us. After all this is the guy who tried to kill my dad."
- George W. Bush Jr, 'President' of the United States
September 26, 2002 (from a political fundraiser in Huston, Texas)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-05 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-05 15:36 2.5.64 - cpufreq/userspace compile failure (with patch) CaT
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox