diff options
-rw-r--r-- | kernel/sched_clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_clock.c b/kernel/sched_clock.c index ac2e1dc708bd..479ce5682d7c 100644 --- a/kernel/sched_clock.c +++ b/kernel/sched_clock.c | |||
@@ -127,7 +127,7 @@ again: | |||
127 | clock = wrap_max(clock, min_clock); | 127 | clock = wrap_max(clock, min_clock); |
128 | clock = wrap_min(clock, max_clock); | 128 | clock = wrap_min(clock, max_clock); |
129 | 129 | ||
130 | if (cmpxchg(&scd->clock, old_clock, clock) != old_clock) | 130 | if (cmpxchg64(&scd->clock, old_clock, clock) != old_clock) |
131 | goto again; | 131 | goto again; |
132 | 132 | ||
133 | return clock; | 133 | return clock; |
@@ -163,7 +163,7 @@ again: | |||
163 | val = remote_clock; | 163 | val = remote_clock; |
164 | } | 164 | } |
165 | 165 | ||
166 | if (cmpxchg(ptr, old_val, val) != old_val) | 166 | if (cmpxchg64(ptr, old_val, val) != old_val) |
167 | goto again; | 167 | goto again; |
168 | 168 | ||
169 | return val; | 169 | return val; |