File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -371,14 +371,10 @@ static int ot_start_sync(struct ot_test *test)
371
371
if (!cpu_online (cpu ))
372
372
continue ;
373
373
374
- work = kthread_create_on_node (ot_thread_worker , item ,
375
- cpu_to_node ( cpu ) , "ot_worker_%d" , cpu );
376
- if (IS_ERR (work )) {
374
+ work = kthread_run_on_cpu (ot_thread_worker , item ,
375
+ cpu , "ot_worker_%d" );
376
+ if (IS_ERR (work ))
377
377
pr_err ("failed to create thread for cpu %d\n" , cpu );
378
- } else {
379
- kthread_bind (work , cpu );
380
- wake_up_process (work );
381
- }
382
378
}
383
379
384
380
/* wait a while to make sure all threads waiting at start line */
@@ -562,14 +558,9 @@ static int ot_start_async(struct ot_test *test)
562
558
if (!cpu_online (cpu ))
563
559
continue ;
564
560
565
- work = kthread_create_on_node (ot_thread_worker , item ,
566
- cpu_to_node (cpu ), "ot_worker_%d" , cpu );
567
- if (IS_ERR (work )) {
561
+ work = kthread_run_on_cpu (ot_thread_worker , item , cpu , "ot_worker_%d" );
562
+ if (IS_ERR (work ))
568
563
pr_err ("failed to create thread for cpu %d\n" , cpu );
569
- } else {
570
- kthread_bind (work , cpu );
571
- wake_up_process (work );
572
- }
573
564
}
574
565
575
566
/* wait a while to make sure all threads waiting at start line */
You can’t perform that action at this time.
0 commit comments