ASoC: intel: Replace kthread with work
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Nov 2016 15:32:19 +0000 (16:32 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 30 Nov 2016 17:41:13 +0000 (17:41 +0000)
commit786e1c37194e8e822eb72a0aed5fa850e07071a0
tree0fa452a029786a67d2931126b3ea5c3d45e0061b
parent91197a9230e852eeefdb79b1bddc3cd9505d4248
ASoC: intel: Replace kthread with work

The usage pattern of kthread worker in Intel SST drivers can be
replaced gracefully with the normal workqueue, which is more light-
weight and easier to manage in general.  Let's do it.

While in the replacement, move the schedule_work() call inside the
spinlock for excluding the race, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/baytrail/sst-baytrail-ipc.c
sound/soc/intel/common/sst-ipc.c
sound/soc/intel/common/sst-ipc.h
sound/soc/intel/haswell/sst-haswell-ipc.c
sound/soc/intel/skylake/skl-sst-cldma.c
sound/soc/intel/skylake/skl-sst-ipc.c
sound/soc/intel/skylake/skl-sst-ipc.h