Print this page
patch remove-load-flag
patch remove-on-swapq-flag

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/cpu.c
          +++ new/usr/src/uts/common/os/cpu.c
↓ open down ↓ 2673 lines elided ↑ open up ↑
2674 2674                           * we'll take the very occasional hit here instead.
2675 2675                           */
2676 2676                          if (tp->t_state == TS_ONPROC) {
2677 2677                                  cpu_surrender(tp);
2678 2678                          } else if (tp->t_state == TS_RUN) {
2679 2679                                  cpu_t *ocp = tp->t_cpu;
2680 2680  
2681 2681                                  (void) dispdeq(tp);
2682 2682                                  setbackdq(tp);
2683 2683                                  /*
2684      -                                 * Either on the bound CPU's disp queue now,
2685      -                                 * or swapped out or on the swap queue.
     2684 +                                 * On the bound CPU's disp queue now.
2686 2685                                   */
2687 2686                                  ASSERT(tp->t_disp_queue == cp->cpu_disp ||
2688      -                                    tp->t_weakbound_cpu == ocp ||
2689      -                                    (tp->t_schedflag & (TS_LOAD | TS_ON_SWAPQ))
2690      -                                    != TS_LOAD);
     2687 +                                    tp->t_weakbound_cpu == ocp);
2691 2688                          }
2692 2689                  }
2693 2690          }
2694 2691  
2695 2692          /*
2696 2693           * Our binding has changed; set TP_CHANGEBIND.
2697 2694           */
2698 2695          tp->t_proc_flag |= TP_CHANGEBIND;
2699 2696          aston(tp);
2700 2697  
↓ open down ↓ 750 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX