Print this page
5042 stop using deprecated atomic functions

@@ -1643,11 +1643,11 @@
         klwp_t *lwp = ttolwp(curthread);
         struct prof *pr = &p->p_prof;
 
         do {
                 ticks = lwp->lwp_oweupc;
-        } while (cas32(&lwp->lwp_oweupc, ticks, 0) != ticks);
+        } while (atomic_cas_32(&lwp->lwp_oweupc, ticks, 0) != ticks);
 
         mutex_enter(&p->p_pflock);
         if (pr->pr_scale >= 2 && upc >= pr->pr_off) {
                 /*
                  * Old-style profiling