打印本文 打印本文 关闭窗口 关闭窗口
ARM Linux 进程调度(2)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2368  更新时间:2009/4/22 20:45:48  文章录入:mintao  责任编辑:mintao
                     enter_lazy_tlb(oldmm, next, this_cpu);
              } else {
                     if (next->active_mm != mm) BUG();
                     switch_mm(oldmm, mm, next, this_cpu);       //如果是用户进程,切换页表
              }
 
              if (!prev->mm) {
                     prev->active_mm = NULL;
                     mmdrop(oldmm);
              }
       }
 
       /*
        * This just switches the register state and the stack.
        */
       switch_to(prev, next, prev);
       __schedule_tail(prev);
 
same_process:
       reacquire_kernel_lock(current);
       if (current->need_resched)
              goto need_resched_back;
       return;
}

上一页  [1] [2] [3] 

打印本文 打印本文 关闭窗口 关闭窗口