aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-09-30 15:10:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-30 15:10:40 -0700
commit84d88d5d4efc37dfb8a93a4a58d8a227ee86ffa4 (patch)
tree8dc2761f3111a7dfee01f290f2659faaa24ec06e /kernel
parente399835c349b7d8339775a004a86a492a444e230 (diff)
parent152f9d0710a62708710161bce1b29fa8292c8c11 (diff)
downloadkernel_samsung_smdk4412-84d88d5d4efc37dfb8a93a4a58d8a227ee86ffa4.zip
kernel_samsung_smdk4412-84d88d5d4efc37dfb8a93a4a58d8a227ee86ffa4.tar.gz
kernel_samsung_smdk4412-84d88d5d4efc37dfb8a93a4a58d8a227ee86ffa4.tar.bz2
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: sched_clock: Fix atomicity/continuity bug by using cmpxchg64() x86: Provide an alternative() based cmpxchg64()
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_clock.c b/kernel/sched_clock.c
index ac2e1dc..479ce56 100644
--- a/kernel/sched_clock.c
+++ b/kernel/sched_clock.c
@@ -127,7 +127,7 @@ again:
clock = wrap_max(clock, min_clock);
clock = wrap_min(clock, max_clock);
- if (cmpxchg(&scd->clock, old_clock, clock) != old_clock)
+ if (cmpxchg64(&scd->clock, old_clock, clock) != old_clock)
goto again;
return clock;
@@ -163,7 +163,7 @@ again:
val = remote_clock;
}
- if (cmpxchg(ptr, old_val, val) != old_val)
+ if (cmpxchg64(ptr, old_val, val) != old_val)
goto again;
return val;