From 5134e51a1007a16ecdff41238d375ad046e7e9d5 Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Fri, 14 Oct 2011 14:51:36 +0530 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34050 Reviewed-by: Srinidhi KASAGAR --- drivers/modem/shrm/shrm_protocol.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers/modem') 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; -- cgit v1.2.3