diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_userspace.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_userspace.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index 92a0be22a2a9..071ee4f1bbf2 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c | |||
@@ -41,7 +41,7 @@ static DEFINE_MUTEX (userspace_mutex); | |||
41 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_GOVERNOR, "userspace", msg) | 41 | #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_GOVERNOR, "userspace", msg) |
42 | 42 | ||
43 | /* keep track of frequency transitions */ | 43 | /* keep track of frequency transitions */ |
44 | static int | 44 | static int |
45 | userspace_cpufreq_notifier(struct notifier_block *nb, unsigned long val, | 45 | userspace_cpufreq_notifier(struct notifier_block *nb, unsigned long val, |
46 | void *data) | 46 | void *data) |
47 | { | 47 | { |
@@ -58,7 +58,7 @@ static struct notifier_block userspace_cpufreq_notifier_block = { | |||
58 | }; | 58 | }; |
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * cpufreq_set - set the CPU frequency | 62 | * cpufreq_set - set the CPU frequency |
63 | * @freq: target frequency in kHz | 63 | * @freq: target frequency in kHz |
64 | * @cpu: CPU for which the frequency is to be set | 64 | * @cpu: CPU for which the frequency is to be set |
@@ -103,8 +103,8 @@ static ssize_t show_speed (struct cpufreq_policy *policy, char *buf) | |||
103 | return sprintf (buf, "%u\n", cpu_cur_freq[policy->cpu]); | 103 | return sprintf (buf, "%u\n", cpu_cur_freq[policy->cpu]); |
104 | } | 104 | } |
105 | 105 | ||
106 | static ssize_t | 106 | static ssize_t |
107 | store_speed (struct cpufreq_policy *policy, const char *buf, size_t count) | 107 | store_speed (struct cpufreq_policy *policy, const char *buf, size_t count) |
108 | { | 108 | { |
109 | unsigned int freq = 0; | 109 | unsigned int freq = 0; |
110 | unsigned int ret; | 110 | unsigned int ret; |
@@ -118,7 +118,7 @@ store_speed (struct cpufreq_policy *policy, const char *buf, size_t count) | |||
118 | return count; | 118 | return count; |
119 | } | 119 | } |
120 | 120 | ||
121 | static struct freq_attr freq_attr_scaling_setspeed = | 121 | static struct freq_attr freq_attr_scaling_setspeed = |
122 | { | 122 | { |
123 | .attr = { .name = "scaling_setspeed", .mode = 0644, .owner = THIS_MODULE }, | 123 | .attr = { .name = "scaling_setspeed", .mode = 0644, .owner = THIS_MODULE }, |
124 | .show = show_speed, | 124 | .show = show_speed, |
@@ -135,7 +135,7 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy, | |||
135 | return -EINVAL; | 135 | return -EINVAL; |
136 | BUG_ON(!policy->cur); | 136 | BUG_ON(!policy->cur); |
137 | mutex_lock(&userspace_mutex); | 137 | mutex_lock(&userspace_mutex); |
138 | cpu_is_managed[cpu] = 1; | 138 | cpu_is_managed[cpu] = 1; |
139 | cpu_min_freq[cpu] = policy->min; | 139 | cpu_min_freq[cpu] = policy->min; |
140 | cpu_max_freq[cpu] = policy->max; | 140 | cpu_max_freq[cpu] = policy->max; |
141 | cpu_cur_freq[cpu] = policy->cur; | 141 | cpu_cur_freq[cpu] = policy->cur; |