summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/disp/ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/disp/ts.c')
-rw-r--r--usr/src/uts/common/disp/ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/disp/ts.c b/usr/src/uts/common/disp/ts.c
index b499244de5..bf65c3c42d 100644
--- a/usr/src/uts/common/disp/ts.c
+++ b/usr/src/uts/common/disp/ts.c
@@ -650,7 +650,7 @@ ts_enterclass(kthread_t *t, id_t cid, void *parmsp,
* faster than a mutex (but check with an ordinary load first
* since most of the time this will already be done).
*/
- if (tspexists == 0 && cas32(&tspexists, 0, 1) == 0)
+ if (tspexists == 0 && atomic_cas_32(&tspexists, 0, 1) == 0)
(void) timeout(ts_update, NULL, hz);
return (0);