[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 4 Apr 2013 21:12:25 +0200
From: Borislav Petkov <bp@...en8.de>
To: Jacob Shin <jacob.shin@....com>
Cc: Viresh Kumar <viresh.kumar@...aro.org>,
"Rafael J. Wysocki" <rjw@...k.pl>, cpufreq@...r.kernel.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Renninger <trenn@...e.de>
Subject: Re: [PATCH V4 1/2] cpufreq: ondemand: allow custom
powersave_bias_target handler to be registered
On Thu, Apr 04, 2013 at 12:18:04PM -0500, Jacob Shin wrote:
> @@ -574,6 +577,45 @@ static struct common_dbs_data od_dbs_cdata = {
> .exit = od_exit,
> };
>
> +static void od_set_powersave_bias(unsigned int powersave_bias)
> +{
> + struct cpufreq_policy *policy;
> + struct dbs_data *dbs_data;
> + struct od_dbs_tuners *od_tuners;
> + unsigned int cpu;
> + cpumask_t done;
> +
> + cpumask_clear(&done);
> +
get_online_cpus();
> + for_each_online_cpu(cpu) {
> + if (cpumask_test_cpu(cpu, &done))
> + continue;
> +
> + policy = per_cpu(od_cpu_dbs_info, cpu).cdbs.cur_policy;
> + dbs_data = policy->governor_data;
> + od_tuners = dbs_data->tuners;
> + od_tuners->powersave_bias = powersave_bias;
> +
> + cpumask_or(&done, &done, policy->cpus);
> + }
put_online_cpus();
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists