]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: replace use of system_wq with system_dfl_wq
authorMarco Crivellari <marco.crivellari@suse.com>
Mon, 29 Sep 2025 15:50:53 +0000 (17:50 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 15 Oct 2025 09:47:31 +0000 (10:47 +0100)
commit0b0eb7702a9fa410755e86124b4b7cd36e7d1cb4
tree9a8e689653bd50321fa6b486ac07bbd9e82e7adc
parent5e537031f322d55315cd384398b726a9a0748d47
ASoC: replace use of system_wq with system_dfl_wq

Currently if a user enqueue a work item using schedule_delayed_work() the
used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use
WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to
schedule_work() that is using system_wq and queue_work(), that makes use
again of WORK_CPU_UNBOUND.

This lack of consistentcy cannot be addressed without refactoring the API.

system_wq is a per-CPU worqueue, replaced by system_percpu_wq. Despite that,
system_wq in this change has been replaced by system_dfl_wq, because there
aren't per-cpu variables.

The old wq will be kept for a few release cylces.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Link: https://patch.msgid.link/20250929155053.400342-2-marco.crivellari@suse.com
Signed-off-by: Mark Brown <broonie@kernel.org>
12 files changed:
sound/soc/codecs/aw88081.c
sound/soc/codecs/aw88166.c
sound/soc/codecs/aw88261.c
sound/soc/codecs/aw88395/aw88395.c
sound/soc/codecs/aw88399.c
sound/soc/codecs/cs42l43-jack.c
sound/soc/codecs/cs42l43.c
sound/soc/codecs/es8326.c
sound/soc/codecs/rt5663.c
sound/soc/intel/boards/sof_es8336.c
sound/soc/sof/intel/cnl.c
sound/soc/sof/intel/hda-ipc.c