diff options
author | 2024-11-14 15:36:46 +0000 | |
---|---|---|
committer | 2024-11-14 15:36:46 +0000 | |
commit | 9a5a75bf1f485e2d109303a996d147b94c5e79c9 (patch) | |
tree | f931f0d17bef0b6ad980aaf3d2d8b874ef2b749c /kernel/kthread.c | |
parent | Add generic AMD Soundwire machine driver for Legacy(No (diff) | |
parent | ASoC: dt-bindings: simple-mux: add idle-state property (diff) | |
download | wireguard-linux-9a5a75bf1f485e2d109303a996d147b94c5e79c9.tar.xz wireguard-linux-9a5a75bf1f485e2d109303a996d147b94c5e79c9.zip |
ASoc: simple-mux: Allow to specify an idle-state
Merge series from "Hendrik v. Raven" <h.v.raven@merzmedtech.de>:
This series adds support for the idle-state property from the mux
framework to the simple-mux audio variant. It allows to specify the state
of the mux when it is not in use.
Diffstat (limited to 'kernel/kthread.c')
-rw-r--r-- | kernel/kthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/kthread.c b/kernel/kthread.c index db4ceb0f503c..9bb36897b6c6 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -623,6 +623,8 @@ void kthread_unpark(struct task_struct *k) { struct kthread *kthread = to_kthread(k); + if (!test_bit(KTHREAD_SHOULD_PARK, &kthread->flags)) + return; /* * Newly created kthread was parked when the CPU was offline. * The binding was lost and we need to set it again. |