diff options
author | Josef 'Jeff' Sipek <josef.sipek@nexenta.com> | 2014-08-08 10:27:20 -0400 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2014-08-12 09:27:14 -0700 |
commit | 75d94465dbafa487b716482dc36d5150a4ec9853 (patch) | |
tree | ecebaff9a32b7a5e5c3f4bba78393ceb328aab73 /usr/src/uts/sun4/os/machdep.c | |
parent | 588575c88d134c8f25f645542bcf36d61ac43a82 (diff) | |
download | illumos-joyent-75d94465dbafa487b716482dc36d5150a4ec9853.tar.gz |
5042 stop using deprecated atomic functions
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/sun4/os/machdep.c')
-rw-r--r-- | usr/src/uts/sun4/os/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/sun4/os/machdep.c b/usr/src/uts/sun4/os/machdep.c index 60d6f07f53..e6e4875da6 100644 --- a/usr/src/uts/sun4/os/machdep.c +++ b/usr/src/uts/sun4/os/machdep.c @@ -550,7 +550,7 @@ cpu_intr_swtch_enter(kthread_id_t t) do { start = t->t_intr_start; interval = CLOCK_TICK_COUNTER() - start; - } while (cas64(&t->t_intr_start, start, 0) != start); + } while (atomic_cas_64(&t->t_intr_start, start, 0) != start); cpu = CPU; if (cpu->cpu_m.divisor > 1) interval *= cpu->cpu_m.divisor; @@ -577,7 +577,8 @@ cpu_intr_swtch_exit(kthread_id_t t) do { ts = t->t_intr_start; - } while (cas64(&t->t_intr_start, ts, CLOCK_TICK_COUNTER()) != ts); + } while (atomic_cas_64(&t->t_intr_start, ts, CLOCK_TICK_COUNTER()) != + ts); } |