Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/rge/rge_chip.c
          +++ new/usr/src/uts/common/io/rge/rge_chip.c
↓ open down ↓ 277 lines elided ↑ open up ↑
 278  278  static uint32_t
 279  279  rge_atomic_shl32(uint32_t *sp, uint_t count)
 280  280  {
 281  281          uint32_t oldval;
 282  282          uint32_t newval;
 283  283  
 284  284          /* ATOMICALLY */
 285  285          do {
 286  286                  oldval = *sp;
 287  287                  newval = oldval << count;
 288      -        } while (cas32(sp, oldval, newval) != oldval);
      288 +        } while (atomic_cas_32(sp, oldval, newval) != oldval);
 289  289  
 290  290          return (oldval);
 291  291  }
 292  292  
 293  293  /*
 294  294   * PHY operation routines
 295  295   */
 296  296  #if     RGE_DEBUGGING
 297  297  
 298  298  void
↓ open down ↓ 1962 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX