[lkml]   [2003]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject2.5.64 - cpufreq/userspace compile failure (with patch)
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->, &dev_attr_scaling_setspeed);
+ device_create_file (policy->dev, &dev_attr_scaling_setspeed);
memcpy (&current_policy[cpu], policy, sizeof(struct cpufreq_policy));
@@ -520,7 +520,7 @@
cpu_is_managed[cpu] = 0;
cpu_min_freq[cpu] = 0;
cpu_max_freq[cpu] = 0;
- device_remove_file (policy->, &dev_attr_scaling_setspeed);
+ device_remove_file (policy->dev, &dev_attr_scaling_setspeed);
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)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.028 / U:2.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site