aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_conservative.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r--drivers/cpufreq/cpufreq_conservative.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index 06bfe1c572cd..7fc58af748b4 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -167,26 +167,13 @@ static struct notifier_block dbs_cpufreq_notifier_block = {
167/************************** sysfs interface ************************/ 167/************************** sysfs interface ************************/
168static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) 168static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf)
169{ 169{
170 static int print_once; 170 printk_once(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
171 171 "sysfs file is deprecated - used by: %s\n", current->comm);
172 if (!print_once) {
173 printk(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
174 "sysfs file is deprecated - used by: %s\n",
175 current->comm);
176 print_once = 1;
177 }
178 return sprintf(buf, "%u\n", -1U); 172 return sprintf(buf, "%u\n", -1U);
179} 173}
180 174
181static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) 175static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf)
182{ 176{
183 static int print_once;
184
185 if (!print_once) {
186 printk(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
187 "sysfs file is deprecated - used by: %s\n", current->comm);
188 print_once = 1;
189 }
190 return sprintf(buf, "%u\n", min_sampling_rate); 177 return sprintf(buf, "%u\n", min_sampling_rate);
191} 178}
192 179