How does linux kernel wake idle processor up when new task created?

后端 未结 4 2109
春和景丽
春和景丽 2020-12-18 03:56

I\'m newbie on Linux Kernel. Currently, I looked into idle codes and had a quesition. When processor doesn\'t have any taks in their own runqueue then it may go into idle mo

4条回答
  •  一生所求
    2020-12-18 04:05

    just set the CPU's flag like below code after create the thread.

     = > thread's task_struct->flags |= PF_WAKE_UP_IDLE;
    

提交回复
热议问题