Print this page
8368 remove warlock leftovers from usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/adapters/tavor/tavor_stats.c
          +++ new/usr/src/uts/common/io/ib/adapters/tavor/tavor_stats.c
↓ open down ↓ 382 lines elided ↑ open up ↑
 383  383          uint64_t                offset, pcr;
 384  384          uint32_t                pic0, pic1, tmp;
 385  385          uint32_t                shift, mask, oldval;
 386  386          uint_t                  numports, indx;
 387  387  
 388  388          TAVOR_TNF_ENTER(tavor_kstat_cntr_update);
 389  389  
 390  390          /*
 391  391           * Extract the Tavor softstate pointer, kstat data, pointer to the
 392  392           * kstat info structure, and pointer to the tki_ib_perfcnt[] array
 393      -         * from the input parameters.  Note: For warlock purposes, these
 394      -         * parameters are all accessed only in this routine and are,
 395      -         * therefore, protected by the lock used by the kstat framework.
      393 +         * from the input parameters.
 396  394           */
 397  395          state   = ksp->ks_private;
 398  396          data    = (struct kstat_named *)(ksp->ks_data);
 399  397          ksi     = state->ts_ks_info;
 400  398          ib_perf = &ksi->tki_ib_perfcnt[0];
 401      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ksi))
 402      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*data))
 403      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ib_perf))
 404  399  
 405  400          /*
 406  401           * Depending on whether we are reading the "pic" counters or
 407  402           * writing the "pcr" control register, we need to handle and
 408  403           * fill in the kstat data appropriately.
 409  404           *
 410  405           * If this is a write to the "pcr", then extract the value from
 411  406           * the kstat data and store it in the kstat info structure.
 412  407           *
 413  408           * Otherwise, if this is a read of the "pic" counter(s), then
↓ open down ↓ 436 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX