Print this page
4664 CPU->cpu_pri_data hasn't been used for years

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/machcpuvar.h
          +++ new/usr/src/uts/i86pc/sys/machcpuvar.h
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55  
  56   56  extern int vcpu_on_pcpu(processorid_t);
  57   57  
  58   58  /*
  59   59   * Machine specific fields of the cpu struct
  60   60   * defined in common/sys/cpuvar.h.
  61   61   *
  62   62   * Note:  This is kinda kludgy but seems to be the best
  63   63   * of our alternatives.
  64   64   */
  65      -typedef void *cpu_pri_lev_t;
  66   65  
  67   66  struct cpuid_info;
  68   67  struct cpu_ucode_info;
  69   68  struct cmi_hdl;
  70   69  
  71   70  /*
  72   71   * A note about the hypervisor affinity bits: a one bit in the affinity mask
  73   72   * means the corresponding event channel is allowed to be serviced
  74   73   * by this cpu.
  75   74   */
↓ open down ↓ 8 lines elided ↑ open up ↑
  84   83           * x_call fields - used for interprocessor cross calls
  85   84           */
  86   85          struct xc_msg   *xc_msgbox;
  87   86          struct xc_msg   *xc_free;
  88   87          xc_data_t       xc_data;
  89   88          uint32_t        xc_wait_cnt;
  90   89          volatile uint32_t xc_work_cnt;
  91   90  
  92   91          int             mcpu_nodeid;            /* node-id */
  93   92          int             mcpu_pri;               /* CPU priority */
  94      -        cpu_pri_lev_t   mcpu_pri_data;          /* ptr to machine dependent */
  95      -                                                /* data for setting priority */
  96      -                                                /* level */
  97   93  
  98   94          struct hat      *mcpu_current_hat; /* cpu's current hat */
  99   95  
 100   96          struct hat_cpu_info     *mcpu_hat_info;
 101   97  
 102   98          volatile ulong_t        mcpu_tlb_info;
 103   99  
 104  100          /* i86 hardware table addresses that cannot be shared */
 105  101  
 106  102          user_desc_t     *mcpu_gdt;      /* GDT */
↓ open down ↓ 51 lines elided ↑ open up ↑
 158  154  #define MWAIT_RUNNING   (0)             /* mcpu_mwait set to wakeup */
 159  155  #define MWAIT_WAKEUP_IPI        (2)     /* need IPI to wakeup */
 160  156  #define MWAIT_WAKEUP(cpu)       (*((cpu)->cpu_m.mcpu_mwait) = MWAIT_RUNNING)
 161  157  
 162  158  #endif  /* _ASM */
 163  159  
 164  160  /* Please DON'T add any more of this namespace-poisoning sewage here */
 165  161  
 166  162  #define cpu_nodeid cpu_m.mcpu_nodeid
 167  163  #define cpu_pri cpu_m.mcpu_pri
 168      -#define cpu_pri_data cpu_m.mcpu_pri_data
 169  164  #define cpu_current_hat cpu_m.mcpu_current_hat
 170  165  #define cpu_hat_info cpu_m.mcpu_hat_info
 171  166  #define cpu_ppaddr_mutex cpu_m.mcpu_ppaddr_mutex
 172  167  #define cpu_gdt cpu_m.mcpu_gdt
 173  168  #define cpu_idt cpu_m.mcpu_idt
 174  169  #define cpu_tss cpu_m.mcpu_tss
 175  170  #define cpu_ldt cpu_m.mcpu_ldt
 176  171  #define cpu_caddr1 cpu_m.mcpu_caddr1
 177  172  #define cpu_caddr2 cpu_m.mcpu_caddr2
 178  173  #define cpu_softinfo cpu_m.mcpu_softinfo
 179  174  #define cpu_caddr1pte cpu_m.mcpu_caddr1pte
 180  175  #define cpu_caddr2pte cpu_m.mcpu_caddr2pte
 181  176  
 182  177  #ifdef  __cplusplus
 183  178  }
 184  179  #endif
 185  180  
 186  181  #endif  /* _SYS_MACHCPUVAR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX