Print this page
6583 remove whole-process swapping

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mlsetup.c
          +++ new/usr/src/uts/i86pc/os/mlsetup.c
↓ open down ↓ 276 lines elided ↑ open up ↑
 277  277          if (is_x86_feature(x86_featureset, X86FSET_SMEP))
 278  278                  setcr4(getcr4() | CR4_SMEP);
 279  279  #endif /* __xpv */
 280  280  
 281  281          /*
 282  282           * initialize t0
 283  283           */
 284  284          t0.t_stk = (caddr_t)rp - MINFRAME;
 285  285          t0.t_stkbase = t0stack;
 286  286          t0.t_pri = maxclsyspri - 3;
 287      -        t0.t_schedflag = TS_LOAD | TS_DONT_SWAP;
      287 +        t0.t_schedflag = 0;
 288  288          t0.t_procp = &p0;
 289  289          t0.t_plockp = &p0lock.pl_lock;
 290  290          t0.t_lwp = &lwp0;
 291  291          t0.t_forw = &t0;
 292  292          t0.t_back = &t0;
 293  293          t0.t_next = &t0;
 294  294          t0.t_prev = &t0;
 295  295          t0.t_cpu = cpu[0];
 296  296          t0.t_disp_queue = &cpu0_disp;
 297  297          t0.t_bind_cpu = PBIND_NONE;
↓ open down ↓ 212 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX