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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index c6b3c6a02fc9..0912d7ca8cd7 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
+++ b/drivers/cpufreq/cpufreq_conservative.c
@@ -140,11 +140,26 @@ static struct notifier_block dbs_cpufreq_notifier_block = {
140/************************** sysfs interface ************************/ 140/************************** sysfs interface ************************/
141static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) 141static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf)
142{ 142{
143 static int print_once;
144
145 if (!print_once) {
146 printk(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
147 "sysfs file is deprecated - used by: %s\n",
148 current->comm);
149 print_once = 1;
150 }
143 return sprintf(buf, "%u\n", MAX_SAMPLING_RATE); 151 return sprintf(buf, "%u\n", MAX_SAMPLING_RATE);
144} 152}
145 153
146static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf) 154static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf)
147{ 155{
156 static int print_once;
157
158 if (!print_once) {
159 printk(KERN_INFO "CPUFREQ: conservative sampling_rate_max "
160 "sysfs file is deprecated - used by: %s\n", current->comm);
161 print_once = 1;
162 }
148 return sprintf(buf, "%u\n", MIN_SAMPLING_RATE); 163 return sprintf(buf, "%u\n", MIN_SAMPLING_RATE);
149} 164}
150 165