Re: [PATCH] input: CPU frequency booster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux