summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--misc/atomic_wide_counter.c4
-rw-r--r--nptl/pthread_cond_common.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/misc/atomic_wide_counter.c b/misc/atomic_wide_counter.c
index 56d8981925..6d395197e7 100644
--- a/misc/atomic_wide_counter.c
+++ b/misc/atomic_wide_counter.c
@@ -72,11 +72,11 @@ __atomic_wide_counter_fetch_add_relaxed (__atomic_wide_counter *c,
          add operations are ordered in happens-before.  */
       h++;
       /* S2. Release MO to synchronize with the loads of the higher-order half
-         in the load operation.  See __condvar_load_64_relaxed.  */
+         in the load operation.  See __atomic_wide_counter_load_relaxed.  */
       atomic_store_release (&c->__value32.__high,
                             h | ((unsigned int) 1 << 31));
       l ^= (unsigned int) 1 << 31;
-      /* S3.  See __condvar_load_64_relaxed.  */
+      /* S3.  See __atomic_wide_counter_load_relaxed.  */
       atomic_store_release (&c->__value32.__low, l);
       /* S4.  Likewise.  */
       atomic_store_release (&c->__value32.__high, h);
diff --git a/nptl/pthread_cond_common.c b/nptl/pthread_cond_common.c
index fb56f93b6e..78e8738210 100644
--- a/nptl/pthread_cond_common.c
+++ b/nptl/pthread_cond_common.c
@@ -75,7 +75,7 @@ __condvar_fetch_xor_wseq_release (pthread_cond_t *cond, unsigned int val)
 static uint64_t __attribute__ ((unused))
 __condvar_fetch_xor_wseq_release (pthread_cond_t *cond, unsigned int val)
 {
-  /* First, get the current value.  See __condvar_load_64_relaxed.  */
+  /* First, get the current value.  See __atomic_wide_counter_load_relaxed.  */
   unsigned int h, l, h2;
   do
     {