Skip to contentSkip to conversation

ASoC: compress: Use power efficient workqueue

PATCH In review Mark Brown 2 participants 2 messages Aug 9, 2013 – Aug 12, 2013

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 ASoC: compress: Use power efficient workqueue

From: Mark Brown <[email protected]>

There is no need for the power down work to be done on a per CPU workqueue especially considering the fairly long delay before powerdown.

---
 sound/soc/soc-compress.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/soc-compress.c +3 -2
index d220150..53c9ecd 100644
@@ -149,8 +149,9 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
 					SND_SOC_DAPM_STREAM_STOP);
 		} else {
 			rtd->pop_wait = 1;
-			schedule_delayed_work(&rtd->delayed_work,
-				msecs_to_jiffies(rtd->pmdown_time));
+			queue_delayed_work(system_power_efficient_wq,
+					   &rtd->delayed_work,
+					   msecs_to_jiffies(rtd->pmdown_time));
 		}
 	} else {
 		/* capture streams can be powered down now */
Signature · 1 line
1.8.4.rc1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Mark Brown

From: Mark Brown <[email protected]>

There is no need for the power down work to be done on a per CPU workqueue especially considering the fairly long delay before powerdown.

Thanks
~Vinod

Quoted 23 lines
---
 sound/soc/soc-compress.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/soc-compress.c +3 -2
index d220150..53c9ecd 100644
@@ -149,8 +149,9 @@ static int soc_compr_free(struct snd_compr_stream *cstream)
 					SND_SOC_DAPM_STREAM_STOP);
 		} else {
 			rtd->pop_wait = 1;
-			schedule_delayed_work(&rtd->delayed_work,
-				msecs_to_jiffies(rtd->pmdown_time));
+			queue_delayed_work(system_power_efficient_wq,
+					   &rtd->delayed_work,
+					   msecs_to_jiffies(rtd->pmdown_time));
 		}
 	} else {
 		/* capture streams can be powered down now */
Signature · 1 line
1.8.4.rc1