msm: cpufreq: Configure WQ for higer priority

When the workqueue runs at a lower priority, it gets starved by higher
priority threads. Bump the WQ priority to high to ensure cpufreq work
queue gets a fair scheduling chance

Change-Id: I9e994da94a347dceb884e72ec3dd3da468a4471d
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
This commit is contained in:
Mahesh Sivasubramanian 2013-05-10 09:38:51 -06:00 committed by Zhao Wei Liew
parent 498b49280a
commit 1538aee4f7

View file

@ -403,7 +403,8 @@ static int __init msm_cpufreq_register(void)
per_cpu(cpufreq_suspend, cpu).device_suspended = 0;
}
msm_cpufreq_wq = create_workqueue("msm-cpufreq");
msm_cpufreq_wq = alloc_workqueue("msm-cpufreq",
WQ_MEM_RECLAIM | WQ_HIGHPRI, 1);
register_hotcpu_notifier(&msm_cpufreq_cpu_notifier);
return cpufreq_register_driver(&msm_cpufreq_driver);