diff options
author | Andrea Arcangeli <andrea@cpushare.com> | 2012-10-03 14:32:14 +0200 |
---|---|---|
committer | Andrew Dodd <atd7@cornell.edu> | 2012-10-07 16:59:46 -0400 |
commit | 7cf296f8064db7991c4cffb13e07de1b5a981d4a (patch) | |
tree | 591611d78eb7bda695081b1cf745457d1097b912 | |
parent | 3d1181d496b7ae93687ebec50de0396bd0670af8 (diff) | |
download | kernel_samsung_smdk4412-7cf296f8064db7991c4cffb13e07de1b5a981d4a.zip kernel_samsung_smdk4412-7cf296f8064db7991c4cffb13e07de1b5a981d4a.tar.gz kernel_samsung_smdk4412-7cf296f8064db7991c4cffb13e07de1b5a981d4a.tar.bz2 |
wakelock: use single threaded workqueueus
Avoid the concurrency management that could delay execution if there's
lots of workqueue traffic (and allow the runqueue to run on any CPU).
Lots of workqueue traffic can be generated by setting
ondemand/sampling_rate to 10000.
Change-Id: I55b8a223f4a389b93d49eef0d809eb1efe1790ba
Signed-off-by: Andrea Arcangeli <andrea@cpushare.com>
-rw-r--r-- | kernel/power/wakelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c index 104f6dc..7133ef4 100644 --- a/kernel/power/wakelock.c +++ b/kernel/power/wakelock.c @@ -630,7 +630,7 @@ static int __init wakelocks_init(void) goto err_platform_driver_register; } - suspend_work_queue = alloc_workqueue("suspend", WQ_HIGHPRI, 0); + suspend_work_queue = alloc_workqueue("suspend", WQ_UNBOUND|WQ_HIGHPRI, 0); if (suspend_work_queue == NULL) { ret = -ENOMEM; goto err_suspend_work_queue; |