File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ int __init lkl_start_kernel(struct lkl_host_operations *ops,
75
75
}
76
76
77
77
lkl_ops -> sem_down (init_sem );
78
+ lkl_ops -> sem_free (init_sem );
78
79
current_thread_info ()-> tid = lkl_ops -> thread_self ();
79
80
lkl_cpu_change_owner (current_thread_info ()-> tid );
80
81
Original file line number Diff line number Diff line change @@ -232,16 +232,16 @@ void threads_cnt_dec(void)
232
232
233
233
void threads_cleanup (void )
234
234
{
235
- struct task_struct * p ;
235
+ struct task_struct * p , * t ;
236
236
237
- for_each_process ( p ) {
238
- struct thread_info * ti = task_thread_info (p );
237
+ for_each_process_thread ( p , t ) {
238
+ struct thread_info * ti = task_thread_info (t );
239
239
240
- if (p -> pid != 1 )
241
- WARN (!(p -> flags & PF_KTHREAD ),
242
- "non kernel thread task %p \n" , p -> comm );
243
- WARN (p -> state == TASK_RUNNING ,
244
- "thread %s still running while halting\n" , p -> comm );
240
+ if (t -> pid != 1 && ! test_ti_thread_flag ( ti , TIF_HOST_THREAD ) )
241
+ WARN (!(t -> flags & PF_KTHREAD ),
242
+ "non kernel thread task %s \n" , t -> comm );
243
+ WARN (t -> state == TASK_RUNNING ,
244
+ "thread %s still running while halting\n" , t -> comm );
245
245
246
246
kill_thread (ti );
247
247
}
You can’t perform that action at this time.
0 commit comments