summaryrefslogtreecommitdiff
path: root/drivers/modem/shrm
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-10-14 14:51:36 +0530
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:02:41 +0100
commit74154e81bd9bfeaa3578991bda7d117bf9b9ac42 (patch)
tree8d2eb3d078fcfce0c7a534bb2702db898ceeb3ab /drivers/modem/shrm
parent7e174ab6bceb56bd6a1e17d02a81f279a072b22d (diff)
U8500 shrm: Create RT workqueue for shm_audio/ac_wake_req/ca_wake_req
Increase priority of workqueues to realtime in order to keep correct timing for audio messages send to modem. This patch was submitted on 2.6.35 by "cedric.izoard@stericsson.com". Now it has been ported to kernel-3.0.0 ST-Ericsson ID : ER361756 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I62e8244496cb9bc64b29b0013745d30bffb26f6b Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34050 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers/modem/shrm')
-rw-r--r--drivers/modem/shrm/shrm_protocol.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/modem/shrm/shrm_protocol.c b/drivers/modem/shrm/shrm_protocol.c
index e34a88676be..78dc4be0754 100644
--- a/drivers/modem/shrm/shrm_protocol.c
+++ b/drivers/modem/shrm/shrm_protocol.c
@@ -714,20 +714,22 @@ int shrm_protocol_init(struct shrm_dev *shrm,
dev_err(shrm->dev, "failed to create work queue\n");
return -ENOMEM;
}
- shrm->shm_audio_ch_wr_wq = create_singlethread_workqueue
- ("shm_audio_channel_irq");
+ shrm->shm_audio_ch_wr_wq = alloc_workqueue("shm_audio_channel_irq",
+ WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
if (!shrm->shm_audio_ch_wr_wq) {
dev_err(shrm->dev, "failed to create work queue\n");
err = -ENOMEM;
goto free_wq1;
}
- shrm->shm_ac_wake_wq = create_singlethread_workqueue("shm_ac_wake_req");
+ shrm->shm_ac_wake_wq = alloc_workqueue("shm_ac_wake_req",
+ WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
if (!shrm->shm_ac_wake_wq) {
dev_err(shrm->dev, "failed to create work queue\n");
err = -ENOMEM;
goto free_wq2;
}
- shrm->shm_ca_wake_wq = create_singlethread_workqueue("shm_ca_wake_req");
+ shrm->shm_ca_wake_wq = alloc_workqueue("shm_ca_wake_req",
+ WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
if (!shrm->shm_ca_wake_wq) {
dev_err(shrm->dev, "failed to create work queue\n");
err = -ENOMEM;