On Thursday, January 19, 2012 11:52:59 PM Thomas Renninger wrote:

> Hi,

>

...

I forgot to activate the newly set limits:


> +/* sysfs stuff **************************/

> +

> +

> +static void cfb_boost(struct work_struct *w)

> +{

> + struct cpufreq_policy policy;

> + int ret;

> +

> + cancel_delayed_work_sync(&unboost);

> + ret = cpufreq_get_policy(&policy, 0);

> + if (ret)

> + return;

> + cpufreq_verify_within_limits(&policy, boost_freq,

> + policy.cpuinfo.max_freq);

cpufreq_update_policy(0);

> + queue_delayed_work(cfb_wq, &unboost,

> + msecs_to_jiffies(boost_time));

> +}

> +

> +static void cfb_unboost(struct work_struct *w)

> +{

> + struct cpufreq_policy policy;

> + int ret;

> +

> + ret = cpufreq_get_policy(&policy, 0);

> + if (ret)

> + return;

> +

> + cpufreq_verify_within_limits(&policy, policy.cpuinfo.min_freq,

> + policy.cpuinfo.max_freq);

cpufreq_update_policy(0);


Hope it works now?


Thomas