ASoC: wm8753: Use power efficient workqueue
authorMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 21:46:24 +0000 (22:46 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 19 Jul 2013 11:25:10 +0000 (12:25 +0100)
The work used to allow the capcitors to ramp is not performance sensitive
so let  the scheduler run it wherever is most efficient rather than in a
per CPU workqueue by using the system power efficient workqueue.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
sound/soc/codecs/wm8753.c

index 0a4ab4c423d123f0bf1ce0e16ed6d261c4b5a52d..d96ebf52d953e850016184f4615f2faf979a738d 100644 (file)
@@ -1456,8 +1456,9 @@ static int wm8753_resume(struct snd_soc_codec *codec)
        if (codec->dapm.suspend_bias_level == SND_SOC_BIAS_ON) {
                wm8753_set_bias_level(codec, SND_SOC_BIAS_PREPARE);
                codec->dapm.bias_level = SND_SOC_BIAS_ON;
-               schedule_delayed_work(&codec->dapm.delayed_work,
-                       msecs_to_jiffies(caps_charge));
+               queue_delayed_work(system_power_efficient_wq,
+                                  &codec->dapm.delayed_work,
+                                  msecs_to_jiffies(caps_charge));
        }
 
        return 0;