We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b3fcd5 + e9e4998 commit 43faa6eCopy full SHA for 43faa6e
1 file changed
arch/lkl/kernel/threads.c
@@ -133,14 +133,14 @@ int host_task_stub(void *unused)
133
134
void switch_to_host_task(struct task_struct *task)
135
{
136
- if (current == task)
137
- return;
138
-
139
if (WARN_ON(!test_tsk_thread_flag(task, TIF_HOST_THREAD)))
140
return;
141
142
task_thread_info(task)->tid = lkl_ops->thread_self();
143
+ if (current == task)
+ return;
+
144
wake_up_process(task);
145
thread_sched_jb();
146
lkl_ops->sem_down(task_thread_info(task)->sched_sem);
0 commit comments