diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index a235114c3d85..1911d1729353 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c | |||
@@ -205,27 +205,13 @@ static void ondemand_powersave_bias_init(void) | |||
205 | /************************** sysfs interface ************************/ | 205 | /************************** sysfs interface ************************/ |
206 | static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) | 206 | static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) |
207 | { | 207 | { |
208 | static int print_once; | 208 | printk_once(KERN_INFO "CPUFREQ: ondemand sampling_rate_max " |
209 | 209 | "sysfs file is deprecated - used by: %s\n", current->comm); | |
210 | if (!print_once) { | ||
211 | printk(KERN_INFO "CPUFREQ: ondemand sampling_rate_max " | ||
212 | "sysfs file is deprecated - used by: %s\n", | ||
213 | current->comm); | ||
214 | print_once = 1; | ||
215 | } | ||
216 | return sprintf(buf, "%u\n", -1U); | 210 | return sprintf(buf, "%u\n", -1U); |
217 | } | 211 | } |
218 | 212 | ||
219 | static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) | 213 | static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) |
220 | { | 214 | { |
221 | static int print_once; | ||
222 | |||
223 | if (!print_once) { | ||
224 | printk(KERN_INFO "CPUFREQ: ondemand sampling_rate_min " | ||
225 | "sysfs file is deprecated - used by: %s\n", | ||
226 | current->comm); | ||
227 | print_once = 1; | ||
228 | } | ||
229 | return sprintf(buf, "%u\n", min_sampling_rate); | 215 | return sprintf(buf, "%u\n", min_sampling_rate); |
230 | } | 216 | } |
231 | 217 | ||