]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ASoC: compress: Use power efficient workqueue
authorMark Brown <broonie@linaro.org>
Fri, 9 Aug 2013 17:12:29 +0000 (18:12 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 12 Aug 2013 10:04:54 +0000 (11:04 +0100)
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.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
sound/soc/soc-compress.c

index d22015074670c4bef44a6814b01d8f20c031d5d2..53c9ecdd119f14fa7a33832d11a88746e257307a 100644 (file)
@@ -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 */