diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 1fa4420eb33c..32ddeaa42244 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/hrtimer.h> | 21 | #include <linux/hrtimer.h> |
22 | #include <linux/tick.h> | 22 | #include <linux/tick.h> |
23 | #include <linux/ktime.h> | 23 | #include <linux/ktime.h> |
24 | #include <linux/sched.h> | ||
24 | 25 | ||
25 | /* | 26 | /* |
26 | * dbs is used in this file as a shortform for demandbased switching | 27 | * dbs is used in this file as a shortform for demandbased switching |
@@ -203,11 +204,27 @@ static void ondemand_powersave_bias_init(void) | |||
203 | /************************** sysfs interface ************************/ | 204 | /************************** sysfs interface ************************/ |
204 | static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) | 205 | static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) |
205 | { | 206 | { |
207 | static int print_once; | ||
208 | |||
209 | if (!print_once) { | ||
210 | printk(KERN_INFO "CPUFREQ: ondemand sampling_rate_max " | ||
211 | "sysfs file is deprecated - used by: %s\n", | ||
212 | current->comm); | ||
213 | print_once = 1; | ||
214 | } | ||
206 | return sprintf(buf, "%u\n", MAX_SAMPLING_RATE); | 215 | return sprintf(buf, "%u\n", MAX_SAMPLING_RATE); |
207 | } | 216 | } |
208 | 217 | ||
209 | static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) | 218 | static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) |
210 | { | 219 | { |
220 | static int print_once; | ||
221 | |||
222 | if (!print_once) { | ||
223 | printk(KERN_INFO "CPUFREQ: ondemand sampling_rate_min " | ||
224 | "sysfs file is deprecated - used by: %s\n", | ||
225 | current->comm); | ||
226 | print_once = 1; | ||
227 | } | ||
211 | return sprintf(buf, "%u\n", MIN_SAMPLING_RATE); | 228 | return sprintf(buf, "%u\n", MIN_SAMPLING_RATE); |
212 | } | 229 | } |
213 | 230 | ||