diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-11-28 16:32:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-30 18:41:13 +0100 |
commit | 786e1c37194e8e822eb72a0aed5fa850e07071a0 (patch) | |
tree | 0fa452a029786a67d2931126b3ea5c3d45e0061b /sound/soc/intel/common/sst-ipc.h | |
parent | ASoC: Intel: atom: Make some messages to debug level (diff) | |
download | linux-786e1c37194e8e822eb72a0aed5fa850e07071a0.tar.xz linux-786e1c37194e8e822eb72a0aed5fa850e07071a0.zip |
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>
Diffstat (limited to 'sound/soc/intel/common/sst-ipc.h')
-rw-r--r-- | sound/soc/intel/common/sst-ipc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/intel/common/sst-ipc.h b/sound/soc/intel/common/sst-ipc.h index f4aab1b3789a..7ed42a640ad6 100644 --- a/sound/soc/intel/common/sst-ipc.h +++ b/sound/soc/intel/common/sst-ipc.h @@ -23,7 +23,6 @@ #include <linux/list.h> #include <linux/workqueue.h> #include <linux/sched.h> -#include <linux/kthread.h> #define IPC_MAX_MAILBOX_BYTES 256 @@ -66,8 +65,7 @@ struct sst_generic_ipc { struct list_head empty_list; wait_queue_head_t wait_txq; struct task_struct *tx_thread; - struct kthread_worker kworker; - struct kthread_work kwork; + struct work_struct kwork; bool pending; struct ipc_message *msg; int tx_data_max_size; |