mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
498b49280a
commit
1538aee4f7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue