diff options
author | Mark Brown <broonie@linaro.org> | 2013-07-18 17:45:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-19 07:24:30 -0400 |
commit | 2c5920a787e68e0a61886d24b05cdbde344c4b0c (patch) | |
tree | 140da6704f15e5eb5829d7c46e4713b8db3f49d8 /sound/soc/codecs/wm8350.c | |
parent | 76394509f579cd4292b076f708da49404be6af37 (diff) |
ASoC: wm8350: Use power efficient workqueue
The accessory detect debounce work 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>
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 0e8b3aaf6c8d..af1318ddb062 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -1301,7 +1301,8 @@ static irqreturn_t wm8350_hpl_jack_handler(int irq, void *data) | |||
1301 | if (device_may_wakeup(wm8350->dev)) | 1301 | if (device_may_wakeup(wm8350->dev)) |
1302 | pm_wakeup_event(wm8350->dev, 250); | 1302 | pm_wakeup_event(wm8350->dev, 250); |
1303 | 1303 | ||
1304 | schedule_delayed_work(&priv->hpl.work, msecs_to_jiffies(200)); | 1304 | queue_delayed_work(system_power_efficient_wq, |
1305 | &priv->hpl.work, msecs_to_jiffies(200)); | ||
1305 | 1306 | ||
1306 | return IRQ_HANDLED; | 1307 | return IRQ_HANDLED; |
1307 | } | 1308 | } |
@@ -1318,7 +1319,8 @@ static irqreturn_t wm8350_hpr_jack_handler(int irq, void *data) | |||
1318 | if (device_may_wakeup(wm8350->dev)) | 1319 | if (device_may_wakeup(wm8350->dev)) |
1319 | pm_wakeup_event(wm8350->dev, 250); | 1320 | pm_wakeup_event(wm8350->dev, 250); |
1320 | 1321 | ||
1321 | schedule_delayed_work(&priv->hpr.work, msecs_to_jiffies(200)); | 1322 | queue_delayed_work(system_power_efficient_wq, |
1323 | &priv->hpr.work, msecs_to_jiffies(200)); | ||
1322 | 1324 | ||
1323 | return IRQ_HANDLED; | 1325 | return IRQ_HANDLED; |
1324 | } | 1326 | } |