mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 12:44:11 +08:00
ASoC: pcm: Use the power efficient workqueue for delayed powerdown
There is no need to use a normal per-CPU workqueue for delayed power downs as they're not timing or performance critical and waking up a core for them would defeat some of the point. Signed-off-by: Mark Brown <broonie@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
64b0c282e8
commit
d4e1a73acd
@ -411,8 +411,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
|
|||||||
} else {
|
} else {
|
||||||
/* start delayed pop wq here for playback streams */
|
/* start delayed pop wq here for playback streams */
|
||||||
rtd->pop_wait = 1;
|
rtd->pop_wait = 1;
|
||||||
schedule_delayed_work(&rtd->delayed_work,
|
queue_delayed_work(system_power_efficient_wq,
|
||||||
msecs_to_jiffies(rtd->pmdown_time));
|
&rtd->delayed_work,
|
||||||
|
msecs_to_jiffies(rtd->pmdown_time));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* capture streams can be powered down now */
|
/* capture streams can be powered down now */
|
||||||
|
Loading…
Reference in New Issue
Block a user