cpufreq: governor: Remove prints from allocation failures
These aren't required anymore as the allocation core already prints such messages. Remove the redundant ones. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e788892ba3
commit
a69d6b2914
|
@ -273,10 +273,8 @@ static int cs_init(struct dbs_data *dbs_data, bool notify)
|
||||||
struct cs_dbs_tuners *tuners;
|
struct cs_dbs_tuners *tuners;
|
||||||
|
|
||||||
tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
|
tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
|
||||||
if (!tuners) {
|
if (!tuners)
|
||||||
pr_err("%s: kzalloc failed\n", __func__);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
tuners->down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD;
|
tuners->down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD;
|
||||||
tuners->freq_step = DEF_FREQUENCY_STEP;
|
tuners->freq_step = DEF_FREQUENCY_STEP;
|
||||||
|
|
|
@ -368,10 +368,8 @@ static int od_init(struct dbs_data *dbs_data, bool notify)
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
|
tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
|
||||||
if (!tuners) {
|
if (!tuners)
|
||||||
pr_err("%s: kzalloc failed\n", __func__);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
cpu = get_cpu();
|
cpu = get_cpu();
|
||||||
idle_time = get_cpu_idle_time_us(cpu, NULL);
|
idle_time = get_cpu_idle_time_us(cpu, NULL);
|
||||||
|
|
Loading…
Reference in New Issue